https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart
# Create new user with sudo
adduser develop
usermod -aG sudo develop
pragma solidity ^0.4.6; | |
/// Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/issues/20 | |
/// @title Abstract token contract - Functions to be implemented by token contracts. | |
contract AbstractToken { | |
// This is not an abstract function, because solc won't recognize generated getter functions for public variables as functions | |
function totalSupply() constant returns (uint256 supply) {} | |
function balanceOf(address owner) constant returns (uint256 balance); | |
function transfer(address to, uint256 value) returns (bool success); |
https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart
# Create new user with sudo
adduser develop
usermod -aG sudo develop
# swith to sudo | |
sudo -i | |
# create swap | |
touch /2GiB.swap | |
chattr +C /2GiB.swap | |
fallocate -l 2048m /2GiB.swap | |
chmod 600 /2GiB.swap | |
mkswap /2GiB.swap |
require 'logger' | |
$logger = Logger.new(STDOUT) | |
require 'active_support/cache' | |
$cache = ActiveSupport::Cache.lookup_store(:memory_store) | |
$cache.logger = $logger | |
$cache.clear | |
class EtagMiddleware |
require 'csv' | |
module Exporter | |
DEFAULT_EXPORT_TABLES = [ FaceNew::User ] | |
DESTINATION_FOLDER = "tmp/" | |
def self.included(klass) | |
klass.extend ClassLevelMethods | |
end |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
elem.clientLeft
, elem.clientTop
, elem.clientWidth
, elem.clientHeight
elem.getClientRects()
, elem.getBoundingClientRect()
http://blip.tv/file/get/Richhickey-ClojureDataStructuresPart1411.flv | |
http://blip.tv/file/get/Richhickey-ClojureDataStructuresPart2306.flv | |
http://blip.tv/file/get/Richhickey-ClojureSequences733.flv | |
http://blip.tv/file/get/Richhickey-ClojureConcurrency252.flv | |
http://blip.tv/file/get/Richhickey-ClojureForJavaProgrammers2Of2680.mov | |
http://blip.tv/file/get/Richhickey-ClojureForJavaProgrammers1Of2174.flv | |
http://blip.tv/file/get/Richhickey-ClojureForLispProgrammersPart2299.mov | |
http://blip.tv/file/get/Richhickey-ClojureForLispProgrammersPart1372.flv | |
http://blip.tv/file/get/Richhickey-HammockdrivenDevelopment465.mov | |
http://blip.tv/file/get/Richhickey-MichaelFogusFertileGroundTheRootsOfClojure492.mov |
#!/usr/bin/env ruby | |
# Usage | |
# $ docker-machine create my-machine123 -d virtualbox | |
# $ ruby <(curl -L https://git.io/vvvco) my-machine123 | |
# https://gist.github.com/mattes/4d7f435d759ca2581347 | |
require 'erb' | |
bootlocalsh = %Q(#/bin/bash |
require 'rom' | |
require 'anima' | |
class User | |
include Anima.new(:id, :name, :tasks) | |
end | |
class Task | |
include Anima.new(:title) | |
end |