This gist contains lists of modules available in
in AWS Lambda.
// In Groovy | |
// collect = "map" | |
// inject = "reduce" | |
// | |
// See http://docs.groovy-lang.org/next/html/documentation/working-with-collections.html for docs | |
//////////////////////////////////////////////////////////////////////////////// | |
// Arrays | |
def myNumbers = [3, 5, 1] |
import requests | |
import time | |
import json | |
token = '' | |
#Delete files older than this: | |
ts_to = int(time.time()) - 30 * 24 * 60 * 60 | |
def list_files(): |
This gist contains lists of modules available in
in AWS Lambda.
require 'net/http' | |
require 'json' | |
require 'uri' | |
@token = '' | |
def list_files | |
ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago | |
params = { | |
token: @token, |
# | |
all: test | |
openssl-fips-2.0.8.tar.gz: | |
wget http://www.openssl.org/source/openssl-fips-2.0.8.tar.gz | |
openssl-1.0.1i.tar.gz: | |
wget http://www.openssl.org/source/openssl-1.0.1i.tar.gz |
#!/bin/sh | |
# | |
# My workflow: | |
# git checkout -b myfeature | |
# ...edit stuff...git commit...edit stuff...git commit...ready to ship... | |
# git ship myfeature -rpd | |
# | |
# It exits if the merge or rebase requires intervention, | |
# for merge: fix the conflict, commit the merge, and re-run the git ship command | |
# for rebase: clean up the conflict, run `git rebase --continue` and then re-run the git ship command |
/* Solarized Dark | |
For use with Jekyll and Pygments | |
http://ethanschoonover.com/solarized | |
SOLARIZED HEX ROLE | |
--------- -------- ------------------------------------------ | |
base03 #002b36 background | |
base01 #586e75 comments / secondary content |
import java.util.*; | |
public class Solution{ | |
public final static int MAX_NUMBER_OF_STATES = 390625;//5^8 | |
class State{ | |
int steps; | |
int[] conf; | |
int peg1, peg2; | |
int prev; | |
# | |
# STL GDB evaluators/views/utilities - 1.03 | |
# | |
# The new GDB commands: | |
# are entirely non instrumental | |
# do not depend on any "inline"(s) - e.g. size(), [], etc | |
# are extremely tolerant to debugger settings | |
# | |
# This file should be "included" in .gdbinit as following: | |
# source stl-views.gdb or just paste it into your .gdbinit file |
#!/bin/bash | |
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
TMUX_VERSION=1.8 |