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
const recast = require('recast'); | |
const b = recast.types.builders; | |
const esprima = require('esprima-next'); | |
const {readFileSync, writeFileSync} = require('fs'); | |
const {resolve} = require('path'); | |
const used = require('./used.json'); | |
const INPUT = resolve(__dirname, 'node_modules/elkjs/lib/elk-worker.js'); | |
const OUTPUT = resolve(__dirname, 'elk-worker-clear.js'); |
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
%YAML 1.2 | |
--- | |
name: Pseudo code2flow | |
file_extensions: [pc2f] | |
scope: source.pc | |
contexts: | |
main: |
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
-- customers table | |
-- id: INT | |
-- poll_id: INT # Foreign key for table poll | |
-- ... other columns | |
CREATE SCHEMA customers_partitions; | |
CREATE OR REPLACE FUNCTION insert_customers() | |
RETURNS TRIGGER AS $$ | |
DECLARE |
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
jQuery(function($) { | |
var Friend = Backbone.Model.extend({ | |
defaults: { | |
name: '' | |
} | |
}); | |
var FriendsList = Backbone.Collection.extend({ | |
model: Friend |
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 gulp = require('gulp'), | |
watch = require('gulp-watch'), | |
plumb = require('gulp-plumber'), | |
replace = require('gulp-replace'), | |
rename = require('gulp-rename'); | |
gulp.task('tss', function () { | |
watch('app/styles-src/*.js') | |
.pipe(plumb()) | |
.pipe(replace(/.*?\{/m, '')) |
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
view.when('@done').$el().toggleClass('done') | |
view.when('#edit').$el().toggleClass('editing') | |
view.find(':checkbox').connect('checked', 'done') | |
title = view.find('.edit') | |
title.connect('value', 'title', {on: 'keyup'}) | |
RxView.merge( | |
title.on('keydown').filterKey('Enter').preventDefault(), | |
title.on('blur') |