moved
- Go to
Sublime Text -> Preferences -> Key Bindings
and add this to yourDefault (OSX).sublime-keymap
[
{
"keys": ["j", "j"],
"command": "_enter_normal_mode",
"args": {
"mode": "mode_insert"
},
"context": [{"key": "vi_insert_mode_aware"}]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.use(logger("dev")); | |
app.use(express.json()); | |
app.use(express.urlencoded({ extended: false })); | |
app.use(cookieParser()); | |
app.use(express.static(path.join(__dirname, "public"))); | |
app.use(session({ secret: "ilovetodidlist" })); | |
// authman init needs to be invoked AFTER app.use(session) | |
authman.init(app); |
- Start the postgresql server using brew and ensure relaunch on login more
$ brew services start postgresql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs') | |
const path = require('path') | |
const saveToFile = (entry) => { | |
const target = path.join(__dirname, 'did.txt') | |
console.log(chalk.green(`... saving to did.txt`)) | |
if (fs.existsSync(target)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const chalk = require('chalk') | |
const inquirer = require('inquirer') | |
const promptSignup = () => { | |
const questions = [ | |
{ | |
message: 'Whats hannenin\'??', | |
name: 'action', | |
type: 'list', | |
choices: ['did', 'task'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find | |
find -name '* SOME_SPECIFIER.SOME_EXTENSION' | |
# find and delete | |
find -name '* SOME_SPECIFIER.SOME_EXTENSION' -delete | |
# example 1: delete all files to end in `"space"1.JPG` | |
find -name '* 1.JPG' -delete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const app = express() | |
const PORT = process.env.PORT || 3000 | |
app.get('/', (req, res) => res.send('Hello World!')) | |
app.listen(PORT, () => console.log(`Example app listening on port ${PORT}!`)) |