- 更新
2023-10-04
- 作者
@voluntas
- バージョン
2023.2
- URL
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
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; |
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
import java.security.AlgorithmParameters; | |
import java.security.Key; | |
import java.security.SecureRandom; | |
import javax.crypto.*; | |
import javax.crypto.spec.*; | |
import java.security.spec.*; | |
import org.apache.commons.codec.binary.Base64; |
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
{ | |
"app/assets/javascripts/models/*.coffee": { | |
"command": "jmodel", | |
"alternate": "spec/javascripts/models/%s_spec.coffee", | |
"template": "App.%S = DS.Model.extend" | |
}, | |
"app/assets/javascripts/controllers/*_controller.coffee": { | |
"command": "jcontroller", | |
"alternate": "spec/javascripts/controllers/%s_spec.coffee", |
WARNING
This gist is outdated! For the most up-to-date information, please see http://emberjs.com/guides/routing/!
An Ember application starts with its main template. Put your header, footer, and any other decorative content in application.handlebars
.
<header>
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
/output |
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
" Shortcuts for backbone.js via the asset pipeline | |
autocmd User Rails Rnavcommand bbmodel app/assets/javascripts/backbone/models -suffix=.js.coffee -glob=* | |
autocmd User Rails Rnavcommand bbhelper app/assets/javascripts/backbone/helpers -suffix=.js.coffee -glob=* | |
autocmd User Rails Rnavcommand bbmixin app/assets/javascripts/backbone/mixins -suffix=.js.coffee -glob=* | |
autocmd User Rails Rnavcommand bbrouter app/assets/javascripts/backbone/routers -suffix=.js.coffee -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 -suffix=.js.coffee -glob=**/* | |
" Shortcuts for less.js via the asset pipeline | |
autocmd User Rails Rnavcommand less app/assets/stylesheets/less -suffix=.less -glob=**/* |
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
" 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 -suffix=.coffee -default=model() | |
Rnavcommand bview app/assets/javascripts/backbone/views -suffix=.coffee | |
" Apotomo Widgets (Cells) | |
Rnavcommand widget app/widgets -suffix=_widget.rb |
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
require 'drb' | |
require 'pp' | |
require 'net/https' | |
require 'oauth' | |
require 'json' | |
class JSONStream | |
def initialize(drop) | |
@buf = '' | |
@drop = drop |
Links and Notes from my Classy Git RubyConf talk:
NewerOlder