test
node install
| require 'aws-sdk-core' | |
| config = { | |
| :region => "ap-northeast-1" | |
| } | |
| client = Aws::EC2::Client.new( | |
| region: config[:region], | |
| ) | |
| resp = client.describe_instances({ |
| function Observer(){ | |
| this.listeners = {}; | |
| } | |
| Observer.prototype.on = function(event, func) { | |
| if(!this.listeners[event]){ | |
| this.listeners[event] = []; | |
| } | |
| this.listeners[event].push(func); | |
| }; | |
| Observer.prototype.off = function(event, func) { |
手もとでGFM (GitHub Flavored Markdown) ファイルをHTMLファイルに変換する簡単なRubyスクリプトgfm2html.rbを下に置きました。 github-markdownを用いています。 google-code-prettifyを使えばsyntax highlightができることが特徴です。 簡単なCSSファイルを用意して使います。例としてstyle.cssが下に置いてあります。
この文章は Gist https://gist.github.com/t-nissie/c415b7da3a694e82d6b5 に置いてあります。
git clone [email protected]:c415b7da3a694e82d6b5.git gfm2htmlでクローンできます。
| var helloWorld :String = "Hello World swift!" | |
| print(helloWorld) |
| $(function(){ | |
| var $targetElement = '.wordBreak'; | |
| if($.browser.msie) { | |
| $($targetElement).css('word-break', 'break-all'); | |
| } else { | |
| $($targetElement).each(function(){ | |
| if(navigator.userAgent.indexOf('Firefox/2') != -1) { | |
| $(this).html($(this).text().split('').join('<wbr />')); | |
| } else { | |
| $(this).html($(this).text().split('').join(String.fromCharCode(8203))); |
| using System; | |
| class HelloWorld { | |
| public static void Main( ) | |
| { | |
| Console.WriteLine("hello world"); | |
| } | |
| } |
| #!/bin/sh | |
| nasm -f bin -o hello.bin hello.asm | |
| dd conv=notrunc if=hello.bin of=cd.cdr |