giltorch sends brownie points to @mwissem :sparkles: :thumbsup: :sparkles:
:cookie: 77 | @mwissem |http://www.freecodecamp.org/mwissem
giltorch sends brownie points to @dancouper :sparkles: :thumbsup: :sparkles:
:cookie: 862 | @dancouper |http://www.freecodecamp.org/dancouper
nunoserodio sends brownie points to @lawlercoppter :sparkles: :thumbsup: :sparkles:
:cookie: 206 | @lawlercoppter |http://www.freecodecamp.org/lawlercoppter
nunoserodio sends brownie points to @lawlercoppter :sparkles: :thumbsup: :sparkles:
This is supposed to append a Tweet button to my quote machine that will automatically have the quote in the tweet box when the user clicks the button. However it's not showing up on my page
$(this).append("<a class='twitter-share-button' href='https://twitter.com/intent/tweet?text=" + urlFriendlyAuthorTemp.join("") + "%20said%20that" + urlFriendlyQuoteTemp.join("") + "'" + "data-size='large'>Tweet</a>");
I feel that the issue lies in my use of quotation marks. Is there anything wrong with them? Thanks
riddos sends brownie points to @mot01 :sparkles: :thumbsup: :sparkles:
:cookie: 953 | @mot01 |http://www.freecodecamp.org/mot01
.About-this-page-box {
padding-bottom: 10px;
}
riddos sends brownie points to @ezioda004 :sparkles: :thumbsup: :sparkles:
:cookie: 365 | @ezioda004 |http://www.freecodecamp.org/ezioda004
codecampnick sends brownie points to @ezioda004 :sparkles: :thumbsup: :sparkles:
:cookie: 366 | @ezioda004 |http://www.freecodecamp.org/ezioda004
encodeURI()
.
window.open("https://twitter.com/intent/tweet?text=" + '"' + encodeURIComponent($("#quote").text()) + + '"')
gummygod sends brownie points to @ezioda004 :sparkles: :thumbsup: :sparkles:
:cookie: 367 | @ezioda004 |http://www.freecodecamp.org/ezioda004
gummygod sends brownie points to @ezioda004 :sparkles: :thumbsup: :sparkles:
gummygod sends brownie points to @ezioda004 :sparkles: :thumbsup: :sparkles:
$.getJSON
, but you have that variable at the top of the JS panel that is trying to generate the URI using lat
and long
, and I'm guessing that they are not available, perhaps not in scope... Or just confused. You have the call to navigator.geolocation
up there at the top, but you have to synchronize with the return of the geolocation data before you can call the $.getJSON
function (I was confused because I see two different declaractions of api
and calls to navigator.geolocation
.) Remember that the geolocation code is asynchronous!
display:none;
for that case, it would override the behavior for a wider screen.
randomQuote
for the array name, but it's randomQuotes
.
davidbelmares sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 3668 | @khaduch |http://www.freecodecamp.org/khaduch
target="_blank"
to your href for your twitter link.
target="_blank"
will open the twitter quote in a new window. It's necessary because on CodePen you cannot open a new page within the same window, because of the way the properties of the frame are set up (or something along those lines.)
for
loop or forEach
method and made a series of calls, one per user.
adamayd sends brownie points to @khaduch and @ezioda004 :sparkles: :thumbsup: :sparkles:
:cookie: 368 | @ezioda004 |http://www.freecodecamp.org/ezioda004
:star2: 3669 | @khaduch |http://www.freecodecamp.org/khaduch
primuscovenant sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 2132 | @heroiczero |http://www.freecodecamp.org/heroiczero
.1 + .2 =
i expect the answer .3
border-style:outset
which overrides the .button:active
CSS because it is on the element.
window[key]["style"]["border-style"] = "";
ivankuzaev sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8835 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
thayyebsalim sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8836 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
=
with the row with 0 and . instead of in that columnhello guys how can i Implement this?
e.g., when I input this 100,000 and return this 100k on typescript?
n<1000 = As it is
100,000>n>1000 = 1k, 2k, 9.8k, 99.1k … etc
1,000,000,000 >n> 100,000 = 0.1 m, 40.4 m … etc
n> 1,000,000,000 = Error message (Beyond Scope)
Any help?
thayyebsalim sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:cookie: 157 | @reycuban |http://www.freecodecamp.org/reycuban
hemakshis sends brownie points to @reycuban :sparkles: :thumbsup: :sparkles:
reycuban sends brownie points to @hemakshis :sparkles: :thumbsup: :sparkles:
:cookie: 302 | @hemakshis |http://www.freecodecamp.org/hemakshis
hemakshis sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8838 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
nsonhouse sends brownie points to @x140hu4 :sparkles: :thumbsup: :sparkles:
:cookie: 313 | @x140hu4 |http://www.freecodecamp.org/x140hu4
tr:nth-child(2)
or some such?
nsonhouse sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8839 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
nsonhouse sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
Promise.all(channels.map(channel => $.getJSON(`${baseUrl}/channels/${channel}?callback=?`)
.then(channelResult => $.getJSON(`${baseUrl}/streams/${channelResult.name}?callback=?`))
))
.then(results => {
// treat this as a global scope that has access to your api results
});
sandersjj sends brownie points to @kbaig :sparkles: :thumbsup: :sparkles:
:cookie: 504 | @kbaig |http://www.freecodecamp.org/kbaig
fetchChannels
function you implemented in your pen, ie mapping over your array channels
with API calls. Calling Promise.all
on the resulting array to resolve, and then using the values throughout the other functionality in your project
newstr is not defined
newstr
, though it could be confusing
pairElement("GCG");
on its own isn't doing anyting
var str = pairElement("GCG");
axon7 sends brownie points to @kbaig :sparkles: :thumbsup: :sparkles:
:cookie: 505 | @kbaig |http://www.freecodecamp.org/kbaig
textContent
an array
JSON.stringify
on arrays durr
<head>
<script src="testfile.js"></script>
</head>
<body>
<div id="container"></div>
</body>
</html>
function pairElement(str){
var newstr = [];
for(var i = 0; i < str.length; i++){
if (str.charAt(i) == "G"){
newstr.push('["G", "C"]');
} else if (str.charAt(i) == "C") {
newstr.push('["C", "G"]');
} else if (str.charAt(i) == "A") {
newstr.push('["A", "T"]');
} else if (str.charAt(i) == "T") {
newstr.push('["T", "A"]');
}
}
return newstr;
}
var strcontent = pairElement("GCG");
var container = document.querySelector("#container");
var strPtag = document.createElement("p");
strPtag.textContent = strcontent;
container.appendChild(strPtag);
``var pTag = document.querySelector( 'p' );
pTag.addEventListener( 'click ', updateName ); function updateName()
{
var name = prompt( "Enter a new name" );
pTag.textContent = "Player 1: " + name;
}
updateName
in pTag.addEventListener( 'click ', updateName );
needs to be called so that line should be pTag.addEventListener( 'click ', updateName ());
@Kingwindie also this webpage did not call the function,it's where i'm learning it from https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/What_is_JavaScript @ezioda004
0
and the .
button elements in your html markup, then you won't get that space between the two buttons in the webpage (by default, button elements are display: inline-block
). The other options are to use float-right
on the .
button, or use flexbox, or have a parent element with font-size: 0
(like you do for the buttons in the .clear
div).
kingwindie sends brownie points to @ezioda004 :sparkles: :thumbsup: :sparkles:
:cookie: 369 | @ezioda004 |http://www.freecodecamp.org/ezioda004
thayyebsalim sends brownie points to @toianw :sparkles: :thumbsup: :sparkles:
:cookie: 507 | @toianw |http://www.freecodecamp.org/toianw
render() {
console.log('rerender :)')
const areas = this.props.data
.map((d,i) =>
<Path
key={d.properties.NTS}
index={i}
d={this.calculate(d)}
data={d}
className={this.showNeighbours(i)}
clickHandler = {this.clickHandler}
/>)
return (
<svg width='800' height='600'
onClick={this.clear}
onWheel={this.wheel}
onMouseDown={this.startDrag}
onMouseMove={this.drag}
onMouseUp={this.endDrag} >
<g draggable="true" transform={"matrix(" + this.state.matrix + ")"} >
{areas}
</g>
</svg>
);
}
completedValues
) on it. any thoughts on what I'm doing wrong?class ConstrainedSet extends Array {
constructor(initialValues) {
super()
this.type = '';
this.alias = '';
this.displayValues = Array(9).fill('').map((x,i) => i + 1);
Object.assign(this,initialValues)
}
get possibleCells() {
const cells = this.toArray;
return this.displayValues.map((x,i) => cells.filter(cell => cell.canBe[i]))
}
get toArray() {
return Array.from(this)
}
get completedValues() {
return this.toArray.map(c => c.value).filter(x => x !== null)
}
}
ConstrainedSet.name
returns "Array"
?
toArray
into a regular method rather than a getter
toArray()
's 'get' prefix, and it still gives me a toArray
is not a function error
Object
, but got around it by removing the extends
clause, since I didn't actually need any of Object
's properties. but in this case I really want to have an array with additional properties, so it's a bummer that it doesn't work
simeydk sends brownie points to @kbaig :sparkles: :thumbsup: :sparkles:
:cookie: 506 | @kbaig |http://www.freecodecamp.org/kbaig
de·vel·op·er (dəˈveləpər)
noun
a person or thing that develops something.
List
in Java is only an Interface. You cannot create an instance of an interface! You probably wanted: List<String> list = new ArrayList<String>();
list
to hold any instance of a class which implements the interface List<String>
ArrayList<String>
does.
hi,
appdyanmics Reference links:
https://docs.appdynamics.com/display/PRO42/Extend+the+JavaScript+Agent+for+Single+Page+Applications+%28SPAs%29+in+Browser+RUM
https://docs.appdynamics.com/display/PRO42/Single+Page+Applications+in+Browser+RUM+-+AngularJS
sample appdynamics angular app https://github.com/derrekyoung/appd-sampleapp-angular2
<script src="https://cdn.appdynamics.com/adrum/adrum-latest.js"></script>
app.component.ts
import { Component } from '@angular/core';
import {Subject} from 'rxjs/Subject';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'AppDynamics Sample App for Angular 2';
click = new Subject();
ngOnInit() {
this.click.subscribe(console.log);
}
}
app.component.html
<h1>
{{title}}
</h1>
<header>
<div>
<!-- Navigation with router directives-->
<nav>
<a [routerLink]="['/']">Home</a>
<a [routerLink]="['/names']">Names</a>
<a [routerLink]="['/posts']">Posts</a>
<a [routerLink]="['/photos']">Photos</a>
</nav>
</div>
<div>
<!-- <button (click)="new Subject()" type="button">Click Me!</button> -->
<button (click)="click.next($event)">Click Me!</button>
</div>
</header>
<router-outlet></router-outlet>
appdynamics request payload
{
"vr": "4.4.1.154",
"dt": "R",
"rg": "0",
"es": [{
"eg": "1",
"et": 2,
"eu": "0://1/2/",
"ts": 1515610064377,
"mg": "2",
"au": "0://3/",
"at": 3,
"pp": 3,
"mx": {
"PLC": 1,
"FBT": 48,
"DDT": 0,
"DPT": 4,
"PLT": 52,
"ARE": 0
},
"md": "GET",
"xs": 200,
"si": 18
}],
"ai": "d4e7ef50_b4f3_1dd7_5cdf_49a60ff5635d",
"gs": ["bbe438d0_0c94_63d9_2c22_700343b560b5", "cde9c933_e332_41ce_9333_5021c1502265", "4e6a7f03_4588_49e2_6c25_d8a3a1f3fe90"],
"up": ["http", "jsonplaceholder.typicode.com", "users", "localhost:4200"]
}