github.com/kemayo/sublime-text-git
babeljs.io
import { useEffect, useState } from "react"; | |
// you can not modify this function: | |
const getAdvice = () => { | |
console.log("getAdvice"); | |
const [advice, setAdvice] = useState(""); | |
useEffect(() => { | |
const url = "https://api.adviceslip.com/advice"; |
# work log for last week on all branches | |
git log --author='rauri' --pretty=format:"%h - %cr - %s" --all | |
# search for first case of a keyword | |
git log -S'require("react")' -- app/coffee/app.coffee | |
# list all branches including remotes | |
git branch -al | |
# get usage history + for user |
const con = console; | |
import context from '../modules/context2d.js'; | |
import easings from '../modules/easings.js'; | |
const canvas = context.canvas; | |
const loopDuration = 5; | |
const BLOCK_SIZE = 100; | |
const SQUARE_WIDTH = 2900; | |
const PATH_STEPS = 433; |
"I would paste the C++ into a new file and retype it by hand, for several reasons: | |
1 - because it gives you a better quality resulting code | |
2 - it forces me to be observing at every [time], how easy it to express this thing in this other language right? Am I having problems? Are things getting better? | |
and then the last reason is - honestly, the code kind of needed some refactoring, even before leaving C++, so it was good to do that" | |
https://www.youtube.com/watch?v=De0Am_QcZiQ&feature=youtu.be&t=1206 |
<canvas id="c" width="600" height="600"></canvas> | |
<script type="text/javascript"> | |
/* | |
// c is defined by browser since canvas has id c | |
t=c.getContext('2d') | |
s=600 // square canvas size | |
p=80 // number of points, lines and margins! | |
g=(s-2*p)/p // gap between each point and line | |
for(i=0;i<p;i++){ |
Save this: | |
<snippet> | |
<content><![CDATA[con.log(${1})]]></content> | |
<tabTrigger>lg</tabTrigger> | |
<scope>source.js</scope> | |
<description>conlog</description> | |
</snippet> | |
as this: |
// 99% done by @rauri rochford | |
// http://js1k.com/2012-love/demo/1071 | |
// rAF'd it by @paul_irish | |
// pentagram'd by raurir in 2017 | |
// demo at: https://bl.ocks.org/raurir/15393091438e2024fd8c0d7bf57649a7 | |
e = [];// trails | |
h = [];// heart path | |
O = c.width = innerWidth; |
create account | |
install: | |
1password | |
little snitch | |
dropbox | |
google drive | |
chrome | |
iterm2 | |
sizeup |
git configuration
git config --global user.name "raurir"
git config --global user.email "email"
git config --global core.editor "subl -n -w"
wack in ~/.bash_profile
: