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 WebAnalytics() { | |
var _dntStatus = navigator.doNotTrack || navigator.msDoNotTrack; | |
var fxMatch = navigator.userAgent.match(/Firefox\/(\d+)/); | |
var ie10Match = navigator.userAgent.match(/MSIE 10/i); | |
var w8Match = navigator.appVersion.match(/Windows NT 6.2/); |
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
@namespace url(http://www.w3.org/1999/xhtml); | |
html input, | |
html textarea, | |
html select, | |
html button, | |
html input[type="reset"], | |
html input[type="button"], | |
html input[type="submit"], | |
html input[type="radio"], |
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
// this function process a webhook event received from Stripe | |
function(request, reply) { | |
var event = request.payload; | |
var charge = event.data.object; | |
if (event.type !== 'charge.succeeded') { | |
return reply('This hook only processes charge succeeded events'); | |
} |
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
/* | |
* popcorn.js version abd0127 | |
* http://popcornjs.org | |
* | |
* Copyright 2011, Mozilla Foundation | |
* Licensed under the MIT license | |
*/ | |
(function(global, document) { |
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
########## | |
# Win10 Initial Setup Script | |
# Author: Disassembler <disassembler@dasm.cz> | |
# Version: 1.7, 2016-08-15 | |
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/ | |
# THIS IS A PERSONALIZED VERSION | |
# This script leaves more MS defaults on, including MS security features. | |
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1 |
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 (req, res, next) { | |
/* Hawk does all the necessaries in this authenticate function. | |
* You pass it a function to look up an ID ( In the MakeAPI I call | |
* them public keys, as they are randomly generated UUIDs | |
*/ | |
hawkModule.Hawk.server.authenticate(req, function (publickey, callback) { | |
/* Create a credentials object, This contains the algorithm that should | |
* be used to calculate the MAC It also contains the public key and will |
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
<RoutingRules> | |
<RoutingRule> | |
<Condition> | |
<KeyPrefixEquals>earn/</KeyPrefixEquals> | |
</Condition> | |
<Redirect> | |
<ReplaceKeyPrefixWith>get-started/earning-badges/</ReplaceKeyPrefixWith> | |
<HttpRedirectCode>307</HttpRedirectCode> | |
</Redirect> | |
</RoutingRule> |
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
Utils.generateUUID = function() { | |
var d = new Date().getTime(); | |
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
var r = (d + Math.random()*16)%16 | 0; | |
d = Math.floor(d/16); | |
return (c=='x' ? r : (r&0x7|0x8)).toString(16); | |
}); | |
return uuid; | |
} |
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
commit 8b8d3239d7418f4225a5a6d722e1b257913bc1dc | |
Author: Mike Kamermans <pomax@nihongoresources.com> | |
Date: Mon Sep 26 10:33:05 2016 -0700 | |
Hackfix (#2238) | |
* prevent WP hack attempts by locking down the stub format | |
* make sure we get JSON |
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
#!/bin/bash | |
set -e | |
app=$APP_NAME | |
old_db_env_var=$OLD_DB_ENV_VAR | |
new_db_env_var=$NEW_DB_ENV_VAR | |
remove_addon_name=$REMOVE_ADDON_NAME | |
old_db_url=`heroku config:get -a $app $OLD_DB_ENV_VAR` | |
new_db_url=`heroku config:get -a $app $new_db_env_var` |
NewerOlder