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
// example 1 | |
x(); | |
function x() { | |
console.log('hello!') | |
x(); | |
} | |
//example 2 | |
print_multiple_times(10) |
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
# Basic wildcards | |
``` | |
<Content Include="App_Plugins\**" /> | |
<Content Include="config\**" /> | |
<Content Include="Content\**" /> | |
<Content Include="css\**" /> | |
<Content Include="js\**" /> | |
<Content Include="Views\**" /> | |
<Content Include="fonts\**" /> |
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
document.body.outerHTML.match(/[-a-z0-9~!$%^&*_=+}{\'?]+(\.[-a-z0-9~!$%^&*_=+}{\'?]+)*@([a-z0-9_][-a-z0-9_]*(\.[-a-z0-9_]+)*\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(:[0-9]{1,5})?/g) |
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
[1,2,3,1,1,2,3,4].reduce(function(map,val){ | |
map[val] = typeof map[val] !== 'undefined' ? map[val]+1 : 1; | |
return map; | |
},{}); |
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
.vendorprefix(@property, @value) { | |
-webkit-@{property}: @value; | |
-khtml-@{property}: @value; | |
-moz-@{property}: @value; | |
@{property}: @value; | |
} |
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 webpack = require('webpack'); | |
var path = require('path'); | |
module.exports = { | |
context: __dirname + '/assets/js', | |
//the file to build | |
entry: './main.js', | |
output: { |
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
### Keybase proof | |
I hereby claim: | |
* I am aclave1 on github. | |
* I am aclavelle (https://keybase.io/aclavelle) on keybase. | |
* I have a public key whose fingerprint is 6E4E E5F2 CEFD 2D0D 6AE2 2A1D CF58 806E 4F50 9E99 | |
To claim this, I am signing this object: |
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 = function () { | |
this.$get = [function () { | |
return function directiveBuilder(config) { | |
var options = config || {}; | |
return { | |
replace: true, | |
restrict: "E", |
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
# Load balancer configuration | |
upstream exampleApp { | |
# Directs to the process with least number of connections. | |
least_conn; | |
# One failed response will take a server out of circulation for 20 seconds. | |
server 127.0.0.1:10080 fail_timeout=20s; | |
#server 127.0.0.1:10081 fail_timeout=20s; | |
#server 127.0.0.1:10082 fail_timeout=20s; | |
#server 127.0.0.1:10083 fail_timeout=20s; |
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 http = require('http'); | |
var body = JSON.stringify({ | |
Name:"OMITTED", | |
PhoneNumber: "OMITTED", | |
Email:"OMITTED", | |
Position:"Javascript Developer", | |
Urls:[ |
NewerOlder