DISCLAIMER: this guide works for SDK version 1.7.2. If you have another version, verify file/URL names in the following.
This file contains hidden or 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
| # For some reason, installing Elixir tries to remove this file | |
| # and if it doesn't exist, Elixir won't install. So, we create it. | |
| sudo touch /etc/init.d/couchdb | |
| # Standard Ubuntu Elixir installation instructions | |
| wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb | |
| sudo dpkg -i erlang-solutions_1.0_all.deb | |
| rm erlang-solutions_1.0_all.deb | |
| sudo apt-get update |
This file contains hidden or 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
| version: '2' | |
| services: | |
| postgres: | |
| image: postgres:9.5 | |
| restart: always | |
| environment: | |
| - "POSTGRES_USER=${POSTGRES_USER}" | |
| - "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}" | |
| - "POSTGRES_DB=gogs" | |
| volumes: |
This file contains hidden or 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
| "use strict"; | |
| var fs= require('fs'); | |
| var Promise = require('bluebird'); | |
| var parse= Promise.promisify(require('csv-parse')); | |
| var file = fs.readFileSync('test.csv', 'utf8'); | |
| var headerKeys; | |
| var options ={ | |
| trim: true, |
This file contains hidden or 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
| # -*- mode: snippet -*- | |
| # name: jsdoc comment | |
| # key: doc | |
| # -- | |
| /** | |
| * $0 | |
| `(save-excursion | |
| (let* ((pos-fun (re-search-forward "\\<function\\s-*(\\([^)]*\\))")) | |
| (argstr (and pos-fun (match-string 1))) | |
| (args (and pos-fun (split-string argstr ",\\s-*")))) |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com, example2.com, and example1.com/images on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
This file contains hidden or 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
| > Killing the default commands | |
| > Note that ALL spaces must be removed from bookmarklets, and %-encoded characters must be changed back to normal. | |
| #kill-defaults | |
| > Begin new commands (many copied from original Quix) | |
| @Searching | |
| ama https://www.amazon.com/s/?field-keywords=%s Amazon Search |
This file contains hidden or 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
| \documentclass[a4paper]{jsarticle} | |
| \newcount\xxCntA | |
| \newcount\xxCntB | |
| \newcount\xxCntC | |
| %% 例のMJDなアレ | |
| \def\calcJulian#1#2#3#4{% | |
| \xxCntA=#2\relax \xxCntB=#3\relax | |
| \ifnum\xxCntA<1 \xxCntA=1 \fi | |
| \ifnum\xxCntB<1 \xxCntB=1 \fi | |
| \ifnum\xxCntB<3 \advance\xxCntB12 \advance\xxCntA-1 \fi |
This file contains hidden or 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
| git config --global alias.his "log --pretty='format:%C(yellow)%h%Creset %C(magenta)%<(22,trunc)%cd%Creset %><(11,trunc)%C(black bold)%ar%Creset | %Cgreen%<(10)%an%Creset | %<(130,trunc)%s %Cred%<(45,trunc)%d%Creset' --date=iso --all -n 15" |