- Source: http://www.ted.com/talks/markham_nolan_how_to_separate_fact_and_fiction_online.html
- Paster: http://gisted.in/
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
vows = require 'vows' | |
assert = require 'assert' | |
test = vows.describe('ゼロでの割り算').addBatch | |
'任意の数をゼロで割った時' : | |
topic: -> 42 / 0 | |
'無限大になる' : (topic) -> | |
assert.equal topic, Infinity | |
'ただし、ゼロをゼロで割った場合' | |
topic: -> 0/ 0 |
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
express = require "express" | |
xml2js = require 'xml2js' | |
_ = require "underscore" | |
request = require "request" | |
prettyDate = require "./pretty" | |
class Timeline | |
constructor: (feed)-> | |
@title = feed.channel.title | |
@link = feed.channel.link |
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
wsseHeader = require './lib/wsse' | |
request = require 'request' | |
# entry = | |
# url: 'http://d.hatena.ne.jp/naoya/#atompost' | |
# comment: "This is it" | |
# xml = """ | |
# <entry xmlns="http://purl.org/atom/ns#"> | |
# <title>dummy</title> |
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
wsseHeader = require './lib/wsse' | |
request = require 'request' | |
entry = | |
url: 'http://d.hatena.ne.jp/naoya/#atompost' | |
comment: "This is it" | |
xml = """ | |
<entry xmlns="http://purl.org/atom/ns#"> | |
<title>dummy</title> |
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
// Returns a copy of the image that has been transformed using the given affine transform and scaled to the new size | |
// The new image's orientation will be UIImageOrientationUp, regardless of the current image's orientation | |
// If the new size is not integral, it will be rounded up | |
+ (UIImage *)resizedImage:(CGSize)newSize | |
transform:(CGAffineTransform)transform | |
drawTransposed:(BOOL)transpose | |
interpolationQuality:(CGInterpolationQuality)quality | |
image:(UIImage*)image | |
hires:(BOOL)hires | |
{ |
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
<div class="hero-unit"> | |
<h1>About me</h1> | |
<p>...</p> | |
</div> |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
package Acme::DQX::Level50; | |
use Test::More tests => 6; | |
use base qw/Class::Accessor/; | |
our @classes = qw/fighter cleric monk thief wizard trickster/; | |
our $level_cap = 50; |
- Source: http://d.hatena.ne.jp/naoya/20130215/1360938984
- Paster: http://gisted.in/