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 ttf2woff = require('ttf2woff') | |
const ttf2woff2 = require('ttf2woff') | |
const fs = require('fs') | |
const path = require('path') | |
const dir = fs.readdirSync('./') | |
for (const file of dir) { | |
const ext = path.extname(file) | |
if (ext !== '.woff' && ext !== '.woff2') { |
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 mkdirp = require('mkdirp'); | |
var rimraf = require('rimraf'); | |
var through = require('through2'); | |
var SOURCE_PATH = '/media/roberthurst/CE543276543260FF'; | |
var DEST_PATH = '/media/roberthurst/478FC40638130E7A/recovered-files'; | |
var MANIFEST_FILE = '/media/roberthurst/478FC40638130E7A/recovered-files.txt'; |
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 Model = require('mongoose').Model; | |
function softRemove(schema) { | |
if (!schema.path('isRemoved')) { | |
schema.add({ isRemoved : { type: Boolean, index: true, default: false } }); | |
} | |
if (!schema.path('removedAt')) { |
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'); | |
function less2stylus(source, mixinNames) { | |
return source | |
// @var => $var | |
.replace(/@([a-zA-Z0-9-_]+)[\s\t]*(:?)[\s\t]*/g, function(str, key, sep) { | |
// do not convert import or media keywords | |
if(['import', 'media'].indexOf(key) > -1) { return str; } |
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
(function(factory) { | |
if(typeof define === 'function' && define.amd) { | |
define(factory); | |
} else { | |
window.SpringJS = factory(); | |
window.s = window.SpringJS; | |
} | |
})(function() { |