Gerbera の GitHub pages を Travis に任せることにしたのでメモしとく
Travis, 最初に git clone --branch=master
して、 master
ブランチだけを持ってくることになっている。
gh-pages
ブランチもほしいので .travis.yml
で
git fetch origin gh-pages:gh-pages
(define (range low high) | |
(if (> low high) | |
() | |
(cons low (range (+ low 1) high)))) | |
(define (flatmap func seq) | |
(if (null? seq) | |
() | |
(append (func (car seq)) (flatmap func (cdr seq))))) |
fs = require 'fs' | |
tokenizer = require 'glsl-tokenizer' | |
parser = require 'glsl-parser' | |
through = require 'through' | |
{ exec } = require 'child_process' | |
transform = (node) -> | |
result = [] | |
walk = (n, path) => | |
path += '/' + n.id |
/* for new UI (2014/4) */ | |
.AppContent-main > .Grid--withGutter > :first-child { | |
position: sticky; | |
top: 40px; | |
} | |
.ProfileTweet { | |
padding: 8px 12px; | |
} |
` | |
// ==UserScript== | |
// @match https://www.google.com/* | |
// @run-at document-end | |
// ==/UserScript== | |
` | |
links = document.querySelectorAll '.r > a' | |
index = 0 |
Gerbera の GitHub pages を Travis に任せることにしたのでメモしとく
Travis, 最初に git clone --branch=master
して、 master
ブランチだけを持ってくることになっている。
gh-pages
ブランチもほしいので .travis.yml
で
git fetch origin gh-pages:gh-pages
require 'harmony-reflect' | |
LazilyExtensible = (obj) -> | |
switch typeof obj | |
when 'object', 'function' | |
Proxy obj, | |
get: (target, name) -> | |
if target[name] is undefined | |
target[name] = LazilyExtensible {} | |
else |
gl = new MicroGL | |
for name in Object.getOwnPropertyNames(Math) | |
if typeof Math[name] is 'function' | |
args = ("0.0" for _ in [1..Math[name].length]) | |
shader = gl._initShader gl.gl.FRAGMENT_SHADER, """ | |
precision mediump float; | |
void main(){ | |
float result = #{name}(#{args.join()}); | |
} |
<script type="text/azalea-coffee"> | |
azalea = require 'azalea' | |
mongo = require 'mongo-wrapper' | |
azalea.events.start = -> | |
mongo.connect() | |
.then (db) -> db.productCategory.find() | |
.then (categories) -> | |
azalea.models.condition.categories = categories |
api = require('./urlmapper')('https://api.example.com/v1') | |
api.users.GET(limit: 1) | |
.then ([user]) -> | |
console.log user.name, user.age | |
api.users[user.id].posts.GET() | |
.then (posts) -> | |
posts.forEach ({ content }) -> console.log content |
html = ' | |
<!doctype html> | |
<title>test</title> | |
<body> | |
foo bar | |
</body> | |
' | |
ifr = document.createElement 'iframe' | |
document.body.appendChild ifr |