A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()):
- Headers
- Links
- Bold
| -- Author: Michael Bianco | |
| -- http://mabblog.com/ | |
| -- References: | |
| -- http://stackoverflow.com/questions/1866912/applescript-how-to-get-current-display-resolution/6524651#6524651 | |
| -- http://macscripter.net/viewtopic.php?id=28958 | |
| on run argv | |
| screenshot_active_window(item 1 of argv) | |
| end run |
| # A quick and dirty plugin for Jekyll by Eli Naeher | |
| # | |
| # This plugin creates a site.years template variable which allow you to group archive links by year and month. | |
| # The structure of site.years is: | |
| # site.years = 2001=>[[post1, post2...], [...]], 2002=>[...] | |
| # | |
| # Usage should look something like this: | |
| # {% for year in site.years %} | |
| # <h2>Year {{ year.first.first.date | date: "%Y" }}</h2> |
A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()):
#プロトタイプと、あとクラス、継承、ミックスインと呼ばれている物の説明
この文書はなるべく正確な情報を書きたいのでちょくちょく更新されます。あと、ちょくちょくキャラが変わるのは気にしないでください。修正した部分に関する情報は コメント やリビジョンを参照してください。
Javascriptの変数にはプリミティブ型とオブジェクト型が存在する。
###プリミティブ型
| function xhr(options) { | |
| var deferred = Q.defer(), | |
| req = new XMLHttpRequest(); | |
| req.open(options.method || 'GET', options.url, true); | |
| // Set request headers if provided. | |
| Object.keys(options.headers || {}).forEach(function (key) { | |
| req.setRequestHeader(key, options.headers[key]); | |
| }); |
Add this to Info.plist in /System/Library/Spotlight/RichText.mdimporter/Contents/ and Spotlight will search for source code files.
<string>public.c-header</string>
<string>public.c-plus-plus-header</string>
<string>public.c-source</string>
<string>public.objective-c-source</string>
public.c-plus-plus-source
This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.
Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:
getTweetsFor("domenic", function (err, results) {
// the rest of your code goes here.| ## CRAN ミラーを指定 | |
| options(repos=list(CRAN="https://cran.rstudio.com/")); | |
| ## 起動時にロードするパッケージを追加 | |
| local({ | |
| pkgs <- getOption("defaultPackages"); | |
| options(defaultPackages=c(pkgs, "lattice", "car")); | |
| }); | |
| ## 零和対比をデフォルトに設定 |
| #!/bin/sh | |
| # Update latest stable version, use it and migrate npm packages. | |
| PREV_VER=$(nodebrew ls|grep current:|cut -d ' ' -f 2) | |
| echo "Current version: $PREV_VER" | |
| echo "" | |
| echo "nodebrew install-binary stable" | |
| nodebrew install-binary stable | |
| if [ $? -ne 0 ]; then | |
| # Already installed |