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 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 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 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 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 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" |
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
S.on('appActivated', function (event, app) { | |
S.log('appActivated:' + app.name()); | |
}); |
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
/** | |
* @see https://github.com/siongui/palidictionary/blob/master/static/js/draggable.js | |
* @see http://docs.angularjs.org/guide/compiler | |
*/ | |
angular.module('draggableModule', []). | |
directive('draggable', ['$document' , function($document) { | |
return { | |
restrict: 'A', | |
link: function(scope, elm, attrs) { |