AddOn:
- Go to about:support in your address bar
- Look for your profiles directory and open it:
- Create a file named
chrome/userChrome.css
in your profile directory:
AddOn:
chrome/userChrome.css
in your profile directory:# For Graphql Playground | |
# Steps in Toolbar: | |
# Workspace > New Workspace > select a folder containing this file | |
# | |
# example: https://github.com/prisma/graphql-playground/pull/757/files | |
# | |
# NOTE for .env | |
# prepare .env with following content, in same directory as .graphqlconfig.yml | |
# GH_TOKEN=paste-my-github-token-here | |
# AIA_TOKEN_LOCAL=paste-aia-token-here |
語法 | 包含 Non-Enumerable 屬性? | 包含原型鍊? | Note | |
---|---|---|---|---|
'name' in person | ✔️ | ✔️ | 範圍超過自己本身 | |
Object.getOwnPropertyNames(person) | ✔️ | no | ||
Object.keys(person) | no | no | Enumerable props ONLY | |
for (let x in person) | no | ✔️ | Enumerable props ONLY |
import getpass | |
def guess_num(guess, ans): | |
resA, resB = 0, 0 | |
for index, c in enumerate(guess): | |
findAnsRes = ans.find(c) | |
if findAnsRes == index: | |
resA += 1 | |
elif findAnsRes >= 0 : |
// sample reference https://www.npmjs.com/package/graphql-client | |
// GitHub API v4 reference https://developer.github.com/v4/explorer/ | |
const graphqlClient = require('graphql-client') | |
// GET your token https://github.com/settings/tokens | |
const TOKEN = 'YOUR-TOKEN-HERE' | |
// choose fields of user info https://developer.github.com/v4/reference/object/user/#fields | |
const USERFIELDS = [ | |
'login', |
// steps: | |
// 1. copy this file to ~/.atom/init.js | |
// 2. in Atom, dispatch command "Window:Reload", Atom would run this file rather than init.coffee | |
// 3. create new empty file Foo.js | |
// 4. focus to new tab, send command "react:insert-functional-component-template" | |
atom.commands.add('atom-text-editor', 'react:insert-functional-component-template', () => { | |
editor = atom.workspace.getActiveTextEditor() | |
if (!editor) { return null } | |
const fileNameCap = getCamelCaseNameFromPath(editor.getPath()) |
var R = require('ramda') | |
var DAY = 'DAY' | |
var fn = R.pipe( | |
function(x) { | |
console.log(R.equals(DAY)(x)) | |
return x | |
}, | |
R.equals(DAY), | |
function(x) { |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"