View GLOBAL_gradle.properties
1 2 3 4 5 6 7 8 9 10
# GLOBAL `gradle.properties`
# 1. remove 'GLOBAL_' prefix from the name and
# 2. put it into ~/.gradle/ directory.
 
# for builds
RELEASES_PARENT_DIR=/Users/meeDamian/APKs
 
# for signing
STORE_FILE=/Users/meeDamian/keys/appSigningKey
STORE_PASSWORD=SuperSecretPasswordMickyGoofieConcretBananas
View lala.js
1 2 3 4
var n = '811695967147882271590606170936837709880092894039492774322388437249705739919504329217526720445757';
var d = parseInt(n, 16);
for(var i =2; i<64; i++)
console.log(d.toString(i));
View build.gradle
1 2 3 4 5 6 7 8 9 10
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
 
defaultConfig {
applicationId 'pl.d30.binClock'
minSdkVersion 15
targetSdkVersion 21
versionCode 21
View listingProperties.groovy
1 2 3 4 5 6 7
def filtered = ['class', 'active']
 
println variant.properties
.sort{it.key}
.collect{it}
.findAll{!filtered.contains(it.key)}
.join('\n')
View .git -> hooks -> pre-commit.sh
1 2 3 4 5 6 7 8 9 10
#!/bin/sh
 
files=$(git diff --cached --name-only --diff-filter=ACM | grep ".js$")
if [ "$files" = "" ]; then
exit 0
fi
 
pass=true
 
echo "\nValidating JavaScript:\n"
View osx-for-hackers.sh
1 2 3 4 5 6 7 8 9 10
# OSX for Hackers (Mavericks/Yosemite)
#
# Source: https://gist.github.com/brandonb927/3195465
 
#!/bin/sh
 
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
 
# Ask for the administrator password upfront
View persistentGuest.md
  1. Create a new Standard User (name it ex. Blah),
  2. Log in as this user and setup account as you want it to be for Guest,
  3. Log out,
  4. Log in as any administrator (for root skip sudo),
  5. Execute those commands:

    sudo rm -rf /Users/Blah/Library/Caches/*
    sudo rm -rf /Users/Blah/Library/Keychains/login.keychain
    sudo rm -rf /Users/Blah/Library/Preferences/SDMHelpData
View style.js
1 2 3 4 5
var sendBitcoins =
exports.sendBitcoins =
function sendBitcoins(arg1, arg2, cb) {
// something
};
View input.json
1 2 3 4 5 6 7 8 9 10
{
"id": "10201838385395896",
"displayName": "Damian Mee",
"name": {
"familyName": "Mee",
"givenName": "Damian"
},
"gender": "male",
"profileUrl": "https:\/\/www.facebook.com\/app_scoped_user_id\/10201838385395896\/",
"provider": "facebook",
View Gruntfile.coffee
1 2 3 4 5 6 7 8 9 10
'use strict'
 
module.exports = (grunt) ->
try
localConfig = require './server/config/local.env'
 
catch e
localConfig = {}
 
# Load grunt tasks automatically when needed
Something went wrong with that request. Please try again.