Problem 1: Nothing but the Truth [Elementary]
trueProblem 2: Simple Math [Elementary]
4| # Commands that are useful once in a while but not always for everyday usage | |
| # Remove all node_modules forlder recursively | |
| find . -name "node_modules" -type d -prune -exec rm -rf '{}' + | |
| # List globally installed npm package | |
| npm list -g --depth=0 | |
| # Loop over files in the current dir | |
| for f in *; do |
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
https://github.com/stefanbuck/awesome-browser-extensions-for-github
I use :
| function worker() { | |
| setInterval(function() { | |
| postMessage({foo: "bar"}); | |
| }, 1000); | |
| } | |
| var code = worker.toString(); | |
| code = code.substring(code.indexOf("{")+1, code.lastIndexOf("}")); | |
| var blob = new Blob([code], {type: "application/javascript"}); |
Onboarding schedule / tasklist / progress-o-meter. This is not meant for anything definitive, but rather a guideline to get an idea of what newjoiners should go through to gather basic knowledge of our working habits and systems.
| [user] | |
| name = Julien Bisconti | |
| email = ****** | |
| [core] | |
| excludesfile = ~/.gitignore | |
| pager = diff-so-fancy | less --tabs=1,5 -R | |
| editor = /usr/bin/vim | |
| [alias] | |
| wow = log --all --graph --decorate --oneline --simplify-by-decoration |
| /* eslint-env node */ | |
| /* eslint-disable strict, no-console */ | |
| 'use strict'; | |
| const version = require('../package.json').version; | |
| const prompt = require('prompt'); | |
| const exec = require('child_process').exec; | |
| const dryRun = process.env.DRY_RUN || false; | |
| const schema = { | |
| properties: { |
Here is a simple and robust way to check for the validity of an email address syntax directly in the browser. No need for crazy regular expressions.
e = document.createElement('input')
e.type = 'email'
// check some email addresses
e.value = 'hi@'