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
#!/usr/bin/env python | |
"""git pull-request | |
Automatically check out github pull requests into their own branch. | |
Usage: | |
git pull-request <OPTIONS> [<pull request number>] |
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 | |
echo "Select on option:" | |
echo "1) Set up new PoPToP server AND create one user" | |
echo "2) Create additional users" | |
read x | |
if test $x -eq 1; then | |
echo "Enter username that you want to create (eg. client1 or john):" | |
read u | |
echo "Specify password that you want the server to use:" | |
read p |
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
package main | |
import ( | |
"log" | |
"time" | |
) | |
func whenDone() func(format string, args ...interface{}) { | |
start := time.Now() | |
return func(format string, args ...interface{}) { |
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
<?php | |
$iterations = 100000; | |
$orderNrLen = 6; | |
for ($secondsLen = 0; $secondsLen < 6; $secondsLen++) { | |
$numbers = []; | |
$collisions = 0; | |
for ($i = 0; $i < $iterations; $i++) { | |
if ($i % 1000 == 0) sleep(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
body{ | |
background:#222; | |
padding: 100px; | |
font-size: 10px; /*increase me to scale toogle-icon*/ | |
} | |
#nav-container{ | |
position: absolute; | |
top: 50%; | |
left: 50%; |
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
#target{ | |
position:absolute; | |
top:-3500px; | |
bottom:0; | |
left:0; | |
right:0; | |
overflow:hidden; | |
font-size:30px; | |
text-align:center; | |
font-family:sans-serif; |
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
$('.submit').click(function(){ | |
var firstName = $('.first').val(), | |
lastName = $('.last').val(), | |
maidenName = $('.maiden').val(), | |
birthCity = $('.birth').val(), | |
subFirst = lastName.substring(0,3) + firstName.substring(0,2), | |
subLast = maidenName.substring(0,2) + birthCity.substring(0,3), | |
starWarsName = subFirst + ' ' + subLast; | |
$('.result').html(starWarsName.toLowerCase()); |
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
#!/usr/bin/env bash | |
set -e | |
token=$1 | |
if [[ -z "${token}" ]]; then | |
echo "Pass an argument to a script to use as a search term" | |
exit 1 | |
fi |
OlderNewer