Add these fun keyboard shortcuts to your system! Works especially well if you're writing @muan a lot (◍•ᴗ•◍)♡
Here's how on OS X:
Press cmd
+ space
and search and open System Preferences, then select Keyboard, then Text ヽ(´∇`)ノ
Note
var d3 = require('d3') | |
var textures = require('textures').textures | |
var types = ["squares", "nylon", "waves", "woven", "caps", "crosses", "hexagons"] | |
var colors = ["peachpuff", "deepskyblue", "tomato", "aquamarine", "hotpink"] | |
setInterval(render, 500) | |
function render() { | |
var type = types.pop() |
var menubar = require('menubar') | |
var exec = require('child_process').exec | |
var fs = require('fs') | |
var mb = menubar() | |
mb.on('ready', function ready () { | |
console.log('Ready!') | |
fetchTimes() | |
}) |
var path = 'atom-electron-b4403fa/docs/api/accelerator.md' | |
// wanted: 'docs/latest/api/accelerator' | |
// - add 'latest/' after 'docs/' | |
// - remove 'atom-electron-b443fa' | |
// - remove file extension at the end | |
function constructRedirectUrl (path) { | |
var a = path.split('/') | |
a.splice(2, 0, 'latest').splice(0, 1) | |
var c = a.join('/') |
{ | |
'variables': { | |
# Enalbe using proprietary codecs. | |
'proprietary_codecs': 1, | |
'ffmpeg_branding': 'Chrome', | |
# And the gold's flags are not available in system's ld neither. | |
'linux_use_gold_flags': 0, | |
# Make Linux build contain debug symbols, this flag will add '-g' to cflags. | |
'linux_dump_symbols': 1, | |
# The Linux build of libchromiumcontent.so depends on, but doesn't |
BLUE='\e[0;34m'; | |
RED="\e[4;31m" | |
CYAN="\e[0;36m" | |
WHITE="\e[0;37m" | |
export PS1="$BLUE\${BRANCH}\e[m $WHITE@\u $CYAN\w:\[\e[0m\] " | |
function get_branch { | |
if [ -d .git ]; then | |
BRANCH="$(git branch | awk '/\*/ { print $2 }') ☁︎ " |
{"core":[{"name":"about","author":{"name":"Machisté N. Quintana","email":"[email protected]"},"main":"./lib/about","version":"1.1.0","description":"View useful information about your Atom installation.","keywords":[],"repository":{"type":"git","url":"https://github.com/atom/about.git"},"license":"MIT","engines":{"atom":">=0.210.0 <2.0.0"},"dependencies":{"atom-space-pen-views":"^2.0.5"},"devDependencies":{"coffeelint":"^1.9.7"},"bugs":{"url":"https://github.com/atom/about/issues"},"homepage":"https://github.com/atom/about#readme","_shasum":"1e9cc8cb5bebb9a7c5cab378f521c397b875be4d","_resolved":"file:../../../../tmp/d-115811-16353-17qcm25/package.tgz","_atomModuleCache":{"version":1,"dependencies":[],"extensions":{".js":["lib/about-view.js","lib/about.js"]},"folders":[{"paths":["lib",""],"dependencies":{"atom-space-pen-views":"^2.0.5"}}]}},{"name":"archive-view","version":"0.60.0","description":"View the files and folders inside archive files","main":"./lib/archive-editor","dependencies":{"at |
var printPDFBton = document.getElementById('print-pdf'); | |
var ipc = require('electron').ipcRenderer; | |
printPDFBton.addEventListener('click', function (event) { | |
ipc.send('print-to-pdf'); | |
}); | |
ipc.on('wrote-pdf', function (event, path) { | |
// TODO should we open the pdf? or put it somewhere else? | |
var message = 'Wrote PDF to: ~' + path; |
var app = require('app'); | |
var BrowserWindow = require('browser-window'); | |
var glob = require('glob'); | |
var mainWindow = null; | |
// Require and setup each JS file in the main-process dir | |
glob('main-process/**/*.js', function (error, files) { | |
if (error) return console.log(error); | |
files.forEach(function (file) { |