-
Why Elixir?
-
Basic Setup
-
Syntax Overview
-
Types
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 ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
type Subscriber func(int) |
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
| Kanban | Scrum | | |
|-------------------------------------------------------|--------------------------------------------------------------------------------| | |
| No prescribed roles | Pre-defined roles of Scrum master, Product owner and team member | | |
| Continuous Delivery | Timeboxed sprints | | |
| Work is pulled through the system (single piece flow) | Work is pulled through the system in batches (the sprint backlog) | | |
| Changes can be made at any time | No changes allowed mid-sprint | | |
| Cycle time | Velocity | | |
| More appropriate in operational environments |
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 | |
mkdir -p /usr/local/bin | |
curl -s https://raw.githubusercontent.com/gauravagarwalr/Script-BackUp/swamp-0.3/OS%20X/Custom-Git-Commands/git-swamp > /usr/local/bin/git-swamp | |
chmod 744 /usr/local/bin/git-swamp |
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
import requests as req | |
import sys | |
from dateutil.parser import parse | |
from PIL import Image | |
from StringIO import StringIO | |
# hi8-fetch.py <date> <zoom level> <output> | |
# E.g.: hi8-fetch.py 2016-01-13T22:10:00 8 2016-01-13T221000-z8.png | |
# Fetch Himawari-8 full disks at a given zoom level. | |
# Valid zoom levels seem to be powers of 2, 1..16, and 20. |
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
renderWrapper = airBrakeClient.wrap(render); |
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
# Netcat - Swiss army knife?! | |
- nc / netcat | |
Helps in looking at the tcp or udp packets flowing. | |
- netstat | |
Lists all process/port combinations. |
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
# Displaying queries in the rails console | |
ActiveRecord::Base.logger = Logger.new(STDOUT) | |
ActiveRecord::Base.connection_pool.clear_reloadable_connections! |
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
mkdir -p ~/bin | |
curl https://raw.github.com/gauravagarwalr/Script-BackUp/master/OS%20X/Custom-Git-Commands/git-multi > ~/bin/git-multi | |
chmod 744 ~/bin/git-multi | |
echo $SHELL | grep 'zsh' | |
is_bourne_shell=$? | |
adding_bin_to_path="export PATH=~/bin:\$PATH" | |
if [ $is_bourne_shell ] ; then |
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
(ns wikiparse | |
(:require [clojure.java.io :as io] | |
[clojure.data.xml :as xml] | |
[clojure.zip :as zip] | |
[clojure.data.zip :as dzip] | |
[clojure.data.zip.xml :as zxml]) | |
(:import [ org.apache.commons.compress.compressors.bzip2 BZip2CompressorInputStream]) | |
(:gen-class :main true)) | |
(defn bz2-reader |
NewerOlder