I hereby claim:
- I am focusaurus on github.
- I am focusaurus (https://keybase.io/focusaurus) on keybase.
- I have a public key whose fingerprint is 6B5E E932 7443 38B7 F12F F706 B2C9 23F1 E205 D5C6
To claim this, I am signing this object:
const express = require("express"); | |
const router = express.Router(); | |
router.get('/', function (req, res) { | |
res.send("This is the '/' route in ep_app"); | |
}); | |
module.exports = router; |
alias screenunlock='defaults write com.apple.screensaver askForPassword 0 && defaults write com.apple.screensaver askForPasswordDelay 0' | |
alias screenlock='defaults write com.apple.screensaver askForPassword 1 && defaults write com.apple.screensaver askForPasswordDelay 60' |
/* | |
run this JavaScript on the chai API doc page: | |
console.log([].map.call(document.querySelectorAll('div.api_method_wrapper h3'), (x) => x.innerText).join('\n')) | |
*/ | |
assert(expression, message) | |
.fail(actual, expected, [message], [operator]) | |
.isOk(object, [message]) | |
.isNotOk(object, [message]) |
function oopsAPI(res, error, model) { | |
if (error) { | |
logger.error('Unexpected mongoose error during API query', error); | |
res.status(500).send(error); | |
return true; | |
} | |
if (!model) { | |
res.status(404).send(); | |
return true; | |
} |
I hereby claim:
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css"> | |
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) | |
*/ |
#!/usr/bin/env node | |
var request = require('superagent'); | |
var config = require('config'); | |
var GITHUB_API_URL = 'https://api.github.com'; | |
var MILESTONES = '/repos/owner/project/milestones'; | |
request.post(GITHUB_API_URL + MILESTONES) | |
.set('Authorization', 'token ' + config.githubToken) | |
.set('User-Agent', 'focusaurus-create-github-milestone') | |
.send({title: process.argv[2]}).end(function (error, res) { | |
console.log(error, res.text); |
#!/usr/bin/python | |
# This is a simple script to convert a very limited set of MoinMoin wiki syntax | |
#to markdown. I am using it in my migration from MoinMoin to a gitit+markdown | |
#wiki. | |
DO_GIT = False | |
#DISABLED#DO_GIT = True | |
import os | |
import re | |
REPLACEMENTS = ( | |
("(./)", "[x]"), |
atom-beautify | |
atom-color-highlight | |
autoclose-html | |
autocomplete-plus | |
git-blame | |
git-plus | |
jsdoc | |
jsformat | |
language-docker | |
language-dockerfile |
class BoringClass
end
class CoolClass
def ==(other_object)
other_object.is_a? MyClass
end
end
BoringClass.new == BoringClass.new #=> false
CoolClass.new == CoolClass.new #=> true!