Skip to content

Instantly share code, notes, and snippets.


Keita Urashima ursm

  • Sapporo, Japan
  • Twitter @ursm
View GitHub Profile
dennishall1 / split-svg-spritesheet.js
Created Mar 17, 2016
Split SVG Spritesheet into individual SVG files
View split-svg-spritesheet.js
var fs = require('fs');
var path = require('path');
var markup = fs.readFileSync('sprite.svg').toString();
var lines = markup.split(/\n/g);
var symbols = {};
var currentSymbol = null;
voluntas / webrtc.rst
Last active Dec 1, 2022
WebRTC コトハジメ
View webrtc.rst
yattom /
Last active Jan 8, 2021
import javax.crypto.*;
import javax.crypto.spec.*;
import org.apache.commons.codec.binary.Base64;
jsteiner / projections.json
Last active Nov 17, 2017
Example Rails.vim projections for an Ember.js project.
View projections.json
"app/assets/javascripts/models/*.coffee": {
"command": "jmodel",
"alternate": "spec/javascripts/models/",
"template": "App.%S = DS.Model.extend"
"app/assets/javascripts/controllers/*": {
"command": "jcontroller",
"alternate": "spec/javascripts/controllers/",
tomdale / gist:3981133
Last active Nov 26, 2019
Ember.js Router API v2
View gist:3981133


This gist is outdated! For the most up-to-date information, please see!

It All Starts With Templates

An Ember application starts with its main template. Put your header, footer, and any other decorative content in application.handlebars.

andykram / .vimrc
Created May 21, 2012
Using rails.vim to make backboning with the asset pipeline easier
View .vimrc
" Shortcuts for backbone.js via the asset pipeline
autocmd User Rails Rnavcommand bbmodel app/assets/javascripts/backbone/models -glob=*
autocmd User Rails Rnavcommand bbhelper app/assets/javascripts/backbone/helpers -glob=*
autocmd User Rails Rnavcommand bbmixin app/assets/javascripts/backbone/mixins -glob=*
autocmd User Rails Rnavcommand bbrouter app/assets/javascripts/backbone/routers -glob=*
autocmd User Rails Rnavcommand bbtemplate app/assets/javascripts/backbone/templates -suffix=.jst.hbs -glob=**/*
autocmd User Rails Rnavcommand bbview app/assets/javascripts/backbone/views -glob=**/*
" Shortcuts for less.js via the asset pipeline
autocmd User Rails Rnavcommand less app/assets/stylesheets/less -suffix=.less -glob=**/*
logankoester / rails.vim
Created Oct 4, 2011
Useful Rails.vim macros
View rails.vim
" Factories and Configuration
Rnavcommand config config -suffix=.yml -default=application
Rnavcommand factory spec/factories test/factories -suffix=.rb -default=model()
" Backbone
Rnavcommand bmodel app/assets/javascripts/backbone/models -default=model()
Rnavcommand bview app/assets/javascripts/backbone/views
" Apotomo Widgets (Cells)
Rnavcommand widget app/widgets -suffix=_widget.rb
View otto.rb
require 'drb'
require 'pp'
require 'net/https'
require 'oauth'
require 'json'
class JSONStream
def initialize(drop)
@buf = ''
@drop = drop