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
node_modules |
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
# | |
# Script by Leigh Purdie | |
# | |
# 1) Install a Ubuntu system, and remove packages according to your | |
# requirements using synaptic. | |
# Don't install any new packages that are NOT available from the CD, | |
# at this stage, unless you include the packages in an 'extras' directory. | |
# | |
# 2) dpkg -l > PackageList | |
# Copy this file to $BASEDIR/source on your build server. |
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
'use-strict'; | |
module.exports = { | |
doLogin: { | |
/** | |
* Adds 5 coins every time a user logs into their account. | |
*/ | |
coins: 5, | |
/** | |
* Adds the 'some-badge' and 'some-other-badge' the first |
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
/** | |
* Awards Configuration | |
* (app.config.awards) | |
* | |
* @notice: If two awards have different deltaTime rules in a single action, | |
* the first one to reset the lastTime will reset the | |
* lastTime for both of them | |
* | |
* @notice: channelCount gets counted even if deltaTime fails | |
* |
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 h2Tags = document.getElementsByTagName('h2'); | |
var h2Inner = []; | |
for (var i = 0; i < h2Tags.length; i++) { | |
var h2Tag = h2Tags[i]; | |
if (h2Tag.getElementsByTagName('a').length > 0) { | |
h2Inner.push(h2Tag.getElementsByTagName('a')[0].innerHTML); | |
} else { | |
h2Inner.push(h2Tag.innerHTML); | |
} |
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>Document</title> | |
</head> | |
<body> | |
<a onclick="loginGithub()" href="#">Login w/ GitHub</a> | |
</body> | |
<script> |
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
alert() |
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
provider "aws" { | |
region = "us-west-2" | |
shared_credentials_file = "~/.aws/credentials" | |
} | |
resource "aws_iam_user" "user" { | |
name = "some-new-aws-user" | |
} | |
resource "aws_iam_user_policy_attachment" "test-attach" { |
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
function helloWorld() { | |
console.log('hello world'); | |
} |