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 { FormData } from 'formdata-node'; | |
import fetch from 'node-fetch-commonjs'; | |
// set to `false` to use production mode | |
const USE_FREE_TIER = true; | |
const ASTRIA_API_KEY = ''; | |
const train = () => { | |
const formData = new FormData(); |
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
node_modules/ | |
dist/ | |
package-lock.json |
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
#!/usr/bin/env node | |
const path = require('path'); | |
const fs = require('fs'); | |
const pkg = require(path.join(process.cwd(), 'package.json')); | |
const whitelist = ['babel-polyfill', '@babel/polyfill']; | |
const devDependencyPatterns = [ | |
'@nerdwallet/nw-app-build', | |
/babel/, |
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
// For definition of each option: https://github.com/fonttools/fonttools/blob/master/Lib/fontTools/subset/__init__.py#L39 | |
pyftsubset path/to/existing/font.otf \ | |
--unicodes-file=path/to/unicode/file.txt \ | |
--flavor=woff2 \ | |
--layout-features='' \ | |
--no-hinting \ | |
--desubroutinize \ | |
--name-IDs='' \ | |
--drop-tables+=GSUB \ | |
--with-zopfli |
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 CharacterSet = require('characterset') | |
const critical = CharacterSet.parseUnicodeRange('U+00-A0,U+A9,U+AE,U+B2-B3,U+B9,U+2013-2014'); | |
const all = CharacterSet.parseUnicodeRange('U+0000-FFFF'); | |
const inverseOfCritical = all.difference(critical) | |
console.log(inverseOfCritical.toHexRangeString()) | |
// => U+A1-A8,U+AA-AD,U+AF-B1,U+B4-B8,U+BA-2012,U+2015-FFFF |
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
.when('/splash/:splash_id', | |
{ | |
controller: 'splashController', | |
templateUrl: '/partials/splashlist.html', | |
resolve: { | |
latlong: ["$q","$rootScope", "splashFactory",function($q, $rootScope, splashFactory) { | |
var deferred = $q.defer(); | |
getLocation(deferred, $rootScope, splashFactory); | |
return deferred.promise; | |
}] |