[ Launch: Tributary inlet ] b6a45cb7399a247eace3 by poezn
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
// SmoothScroll for websites v1.2.1 | |
// Licensed under the terms of the MIT license. | |
// People involved | |
// - Balazs Galambosi (maintainer) | |
// - Michael Herf (Pulse Algorithm) | |
(function(){ | |
// Scroll Variables (tweakable) |
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
@mixin hw-accelerate { | |
-webkit-transform: translate3d(0, 0, 0); | |
-webkit-backface-visibility: hidden; | |
-webkit-perspective: 1000; | |
transform: translate3d(0, 0, 0); | |
backface-visibility: hidden; | |
} |
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
''' | |
Simple way to get valid integer raw_input in Python 2.7 | |
''' | |
def earn(): | |
try: | |
userInput = int(raw_input("Enter your earnings:")) | |
print "you earn: " + str(userInput) | |
except ValueError: | |
print "Please reenter an integer" | |
earn() |
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 | |
// A demonstration of a gosudar plugin. For now, place the compiled binary in /tmp/plugins. | |
import ( | |
"net" | |
"net/rpc/jsonrpc" | |
"os" | |
) |
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
defmodule Parallel do | |
def pmap(collection, fun) do | |
me = self | |
collection | |
|> Enum.map(fn (elem) -> | |
spawn_link fn -> (send me, { self, fun.(elem) }) end | |
end) | |
|> Enum.map(fn (pid) -> | |
receive do { ^pid, result } -> result end |
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
$User = 'machine\administrator' | |
$Password = 'abcd1234!' | |
$host = 10.0.0.10 | |
$securedPassword = ConvertTo-SecureString $Password -AsPlainText -Force | |
$Credential = New-Object System.Management.Automation.PSCredential ($User, $securedPassword) | |
#establish session | |
$session = New-PSSession -ComputerName $host -Credential $Credential -ErrorAction SilentlyContinue |
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 ( | |
"flag" | |
"log" | |
"strconv" | |
"net/http" | |
) | |
var code = flag.Int("c", 200, "code") |
Install Docker on Linode (Ubuntu 12.04)
apt-get update
apt-get install linux-virtual grub-legacy-ec2
Find this line in /boot/grub/menu.list:
defoptions=console=hvc0
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
defmodule ArchJS do | |
use Application | |
import ArchJS.Macros.Sup | |
defsup User, [] do | |
defsofo Sessions, ArchJS.User.Session | |
children = [ | |
worker(ArchJS.User.Registry, []), | |
worker(ArchJS.User.Sessions, []) | |
] |
OlderNewer