$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine
.babelrc:
{
"presets": ["es2015"]
Array.prototype.flatMap = function(lambda) { | |
return Array.prototype.concat.apply([], this.map(lambda)); | |
}; | |
Transis && (Transis.Array.prototype.flatMap = function(lambda) { | |
return Array.prototype.concat.apply([], this.map(lambda)); | |
}); |
$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine
.babelrc:
{
"presets": ["es2015"]
// Provides an api for browser windows to set hotkey combinations to functions. | |
// e.g.: | |
// hotkeys.register(['e', 'q', 'alt'], function() { | |
// console.log('e, q, and alt have been pressed simultaneously') | |
// }, { | |
// continuous: false // will not unregister trigger | |
// }) | |
// | |
// these are only available via keyup |
System Preferences > General > Use dark menu bar and Dock
See if your menu bar icons can be switched to black, so they appear white for dark menu bar, most apps have an option in settings.
unless File.exist?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
gem 'rails', github: 'rails/rails' | |
gem 'arel', github: 'rails/arel' | |
gem 'sqlite3' | |
GEMFILE | |
system 'bundle' | |
end |
const fakeString = n => Array.from(Array(n || 10).keys()).map(n => String.fromCharCode(Math.floor(Math.random()*26) + 97)).join('') |
var html_file = require("path").join(process.resourcesPath, "app/index.html"); | |
var html = require("fs").readFileSync(html_file, "utf8"); | |
var link_to_inject = '<link href="https://cdn.rawgit.com/ObserverOfTime/07e862ec7240d995e672818f43513bc7/raw/06c86e69c94935962b07b5302c195f7d6465eacd/desktop-dark.css" rel="stylesheet">'; | |
html = html.replace(link_to_inject, "").replace("</head>", `\n${link_to_inject}</head>`); | |
require("fs").writeFileSync(html_file, html, "utf8"); | |
location.reload(); |
/* eslint-disable */ | |
const EVENT_NAMES = ['onMouseDown', 'onMouseUp', 'onClick', 'onKeyUp', 'onKeyDown'] | |
// Press ctrl+space for code completion | |
export default function transformer(file, api) { | |
const j = api.jscodeshift; | |
let foundAttrs = j(file.source).find(j.JSXAttribute) | |
var replacements = [] | |
foundAttrs = foundAttrs.forEach(path => { |
docker container run --publish 80:80 nginx
nginx
from Docker HubWindows 7 All Online/Offline [Retail-MAK] Activation Keys | |
================================================================================= | |
. Run "Command Prompt" as Administrator | |
. slmgr.vbs -ipk Product Key | |
. slui4 | |
================================================================================= | |
Windows 7 Ultimate Retail Phone Activation Keys | |
RHTBY-VWY6D-QJRJ9-JGQ3X-Q2289 | |
V77DJ-CT8WB-Y3GXT-X3FBP-6F987 | |
JC7BV-94FD2-D86PH-XRMHR-BXKDG |