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
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, []) | |
] |
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
package main | |
import ( | |
"flag" | |
"log" | |
"strconv" | |
"net/http" | |
) | |
var code = flag.Int("c", 200, "code") |
$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 |
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 |
package main | |
// A demonstration of a gosudar plugin. For now, place the compiled binary in /tmp/plugins. | |
import ( | |
"net" | |
"net/rpc/jsonrpc" | |
"os" | |
) |
''' | |
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() |
@mixin hw-accelerate { | |
-webkit-transform: translate3d(0, 0, 0); | |
-webkit-backface-visibility: hidden; | |
-webkit-perspective: 1000; | |
transform: translate3d(0, 0, 0); | |
backface-visibility: hidden; | |
} |
// 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) |
[ Launch: Tributary inlet ] b6a45cb7399a247eace3 by poezn