Git default configuration is good but it can be personalized to improve your workflow efficiency.
Here are some good lines to put in your ~/.gitconfig
:
# The basics, who you commit as:
[user]
name = John Doe
email = [email protected]
Git default configuration is good but it can be personalized to improve your workflow efficiency.
Here are some good lines to put in your ~/.gitconfig
:
# The basics, who you commit as:
[user]
name = John Doe
email = [email protected]
This describes how I setup Atom for an ideal Clojure development workflow. This fixes indentation on newlines, handles parentheses, etc. The keybinding settings for enter (in keymap.cson) are important to get proper newlines with indentation at the right level. There are other helpers in init.coffee and keymap.cson that are useful for cutting, copying, pasting, deleting, and indenting Lisp expressions.
The Atom documentation is excellent. It's highly worth reading the flight manual.
#!/bin/sh | |
# store the current dir | |
CUR_DIR=$(pwd) | |
# Let the person running the script know what's going on. | |
echo "\n\033[1mExecuting command $@ for all repositories...\033[0m\n" | |
# Find all git repositories and update it to the master latest revision | |
for i in $(find . -maxdepth 4 -type d -name ".git" | cut -c 3-) ; do |
npm users sorted by the monthly downloads of their modules, for the range May 6, 2018 until Jun 6, 2018.
Metrics are calculated using top-npm-users.
# | User | Downloads |
---|
» for i in `host keys.gnupg.net | grep "has address" | awk -F" " '{ print $4 }'`; do printf -- "ip: $i is match? "; curl -L -q -s -H "Host: pool.sks-keyservers.net" http://$i | html2text | grep -q -i openpgp; if [[ $? -eq 0 ]]; then echo "yes"; else echo "no"; fi; done | |
ip: 204.61.209.238 is match? no | |
ip: 46.229.47.139 is match? yes | |
ip: 66.109.111.12 is match? yes | |
ip: 67.205.56.66 is match? no | |
ip: 68.187.0.77 is match? yes | |
ip: 78.157.209.9 is match? yes | |
ip: 84.200.66.125 is match? yes | |
ip: 91.189.90.55 is match? yes | |
ip: 93.94.119.246 is match? no |
import {createStore} from 'redux'; | |
import reducer from './reducers/index.js' | |
import { rehydrate, rehydratingStore } from './utils/rehydratingStore.js'; | |
const store = rehydratingStore()(createStore)(reducer); | |
export function __reload(deletedModule){ | |
const prevState = deletedModule.getState(); | |
debug('Reloaded. rehydrate with state: ', prevState.sketcher.objectsById); | |
store.dispatch(rehydrate(prevState)); |
I think we should have all our code in a monolithic repository.
I've detailed the big benefits to having one, addressed possible issues to having one, and mentioned a few risks to not moving to a monorepo below.
Golang package dependencies
vendor/
dir at the top level of deis/deis
;;;;;;;;;;;;;;;;;;; | |
;; Collections in Clojure | |
;;;;;;;;;;;;;;;;;;; | |
;; Distinctive characteristics | |
;;;;;;;;;;;;;;;;;;; | |
;; * They are mainly used in terms of abstractions, not the details of concrete implementations. | |
;; * They are immutable and persistent. | |
;;;;;;;;;;;;;;;;;;; |
from Hugo Giraudel, https://twitter.com/HugoGiraudel/status/661147120230100992 | |
Convert ES5 requires to ES6 imports in ST: | |
Search: | |
var\s+(\w+)\s+\=\s+require\((("|')[a-zA-Z0-9\/\.-]+\3)\)\;? | |
Replace: | |
import $1 from $2; |