This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var user; | |
var balance; | |
getCurrentUser() | |
.then(function (currentUser) { | |
user = currentUser; | |
return getBalance(user); | |
}) | |
.then(function (userBalance) { | |
balance = userBalance; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[diff] | |
tool = kdiff3 | |
[difftool "kdiff3"] | |
cmd = 'c:\\Program Files\\kdiff3\\kdiff3' $LOCAL $REMOTE | |
keepBackup = false | |
trustExitCode = true | |
keepTemporaries = false | |
[merge] | |
tool = kdiff3 | |
[mergetool "kdiff3"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<div style="height: 1584018px;"> | |
Inspect my layout | |
</div> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = Math.random(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var posts = new wp.api.collections.Posts(); | |
posts.fetch().done(function() { | |
var post = posts.first().attributes; | |
// ... | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
email-guess = !. ~/.git-scripts/email-guess.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var paths = require('./paths'); | |
gulp.task('lint', function() { | |
gulp.src(paths.app.concat(paths.test)) | |
.pipe(lint()); | |
}); | |
gulp.task('minify', function() { | |
gulp.src(paths.app) | |
.pipe(minify()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Repeating Web client | |
This sketch connects to a a web server and makes a request | |
using a Wiznet Ethernet shield. You can use the Arduino Ethernet shield, or | |
the Adafruit Ethernet shield, either one will work, as long as it's got | |
a Wiznet Ethernet module on board. | |
This example uses DNS, by assigning the Ethernet client with a MAC address, | |
IP address, and DNS address. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Repeating Web client | |
This sketch connects to a a web server and makes a request | |
using a Wiznet Ethernet shield. You can use the Arduino Ethernet shield, or | |
the Adafruit Ethernet shield, either one will work, as long as it's got | |
a Wiznet Ethernet module on board. | |
This example uses DNS, by assigning the Ethernet client with a MAC address, | |
IP address, and DNS address. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function* fib() { | |
var a = 0; | |
var b = 1; | |
while(true) { | |
yield a; | |
b = a+b; | |
a = b-a; | |
} | |
} |