Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| defmodule ExecuteSigil do | |
| @doc """ | |
| Handles the sigil %x. Takes the given command line string, unescapes the necessary | |
| characters and replaces interpolations, executes it, and returns the | |
| results as a string. | |
| ## Examples | |
| iex> %x"echo Hello \x45\x6c\x69\x78\x69\x72\x21" |
| # https://discussions.apple.com/thread/4144252 | |
| # partition 5 - Ubuntu boot | |
| # partition 6 - Ubuntu swap | |
| # partition 7 - Ubuntu files ~ 100 GB | |
| $ diskutil list | |
| /dev/disk0 | |
| #: TYPE NAME SIZE IDENTIFIER | |
| 0: GUID_partition_scheme *251.0 GB disk0 |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| APPDIRS := $(wildcard apps/*) | |
| ## Example hack to filter one out: | |
| ## APPDIRS := $(filter-out apps/fooapp, $(APPDIRS)) | |
| define PROXY_TARGET | |
| $(1): | |
| $(foreach appdir,$(APPDIRS),$(MAKE) -C $(appdir) $(1) ;) | |
| endef |
| #!/usr/bin/env bash | |
| if [ $# -ne 2 ] | |
| then | |
| echo "Usage: erl_new <type> <project_name>" | |
| exit 1 | |
| fi | |
| TYPE=$1 | |
| PROJECT_NAME=$2 |
This is not intended to be comprehensive or authoritative, just free online resources I've found valuable while learning more about Erlang.
| import urllib2 | |
| import re | |
| from BeautifulSoup import * | |
| from datetime import * | |
| symbols = ['YHOO', 'MU', 'AA', 'CI', 'EOG', 'ZMH', 'G', 'HON', 'IWM', 'WYE', 'JCP', 'OXY', 'AAPL', 'SBUX', 'MO', 'KLAC', 'SIRI', 'GDT', 'WMT', 'LLTC', 'PALM', 'EA', 'SUN', 'CL', 'JAVA', 'SMH', 'NBR', 'JNJ', 'GCI', 'SHLD', 'AMD', 'ORCL', 'ERIC', 'LEH', 'WLP', 'CAH', 'LXK', 'CAR', 'CVX', 'GE', 'DE', 'NTAP', 'BSC', 'VRSN', 'DNA', 'GENZ', 'ASKJ', 'BRCM', 'TGT', 'MCD', 'CMCS', 'KBH', 'SYMC', 'BAC', 'NCC', 'BSX', 'IR', 'UNH', 'F', 'ADBE', 'MDY', 'CCL', 'TASR', 'SCHW', 'GS', 'T', 'ADI', 'MON', 'HOG', 'DIA', 'SEPR', 'BTU', 'X', 'D', 'GILD', 'NEM', 'BUD', 'MET', 'CMX', 'AVP', 'MDT', 'QCOM', 'XLNX', 'XOM', 'AMGN', 'OSTK', 'AXP', 'AET', 'GLW', 'KMG', 'GM', 'MXIM', 'APOL', 'SGP', 'IBM', 'MS', 'SNDK', 'BA', 'KO', 'MER', 'RTH', 'M', 'FDC', 'PD', 'XLE', 'XLF', 'FLEX', 'KRB', 'UTX', 'TZOO', 'FDX', 'NKE', 'NXTL', 'DOW', 'HES', 'KSS', 'BP', 'BIIB', 'BBBY', 'SII', 'DELL', 'AIG', 'HIG', 'BBY', 'EBAY', 'RD', 'GPS', 'MERQE', 'PEP', 'IGT', 'CECO', 'ALL', ' |
| #include <stdio.h> | |
| // | |
| // | |
| // | |
| #define WARP_SIZE 32 | |
| #define VOLATILE volatile |
| # Title: Responsive Lazy Load YouTube embed tag for Jekyll | |
| # Author: Brett Terpstra <http://brettterpstra.com> | |
| # Description: Output a styled element for onClick replacement with responsive layout | |
| # | |
| # Syntax {% youtube video_id [width height] ["Caption"] %} | |
| # | |
| # Example: | |
| # {% youtube B4g4zTF5lDo 480 360 %} | |
| # {% youtube http://youtu.be/2NI27q3xNyI %} |