Checkout specific commit
git checkout be9055b .
Add changes to the staging area and commit them:
git add -A
run nginx from homebrew | |
run nginx -t and open the config path | |
update with the config. Change `proxy_pass` to urls you need. | |
Make sure to match port on your localhost |
type IntersectingTypes<T, U> = { | |
[K in Extract<keyof T, keyof U>]: T[K] | |
} | |
/** USAGE | |
interface Boat { | |
name: string | |
engine: string | |
feet: number | |
} |
grep -m1 @mypackage/foo package.json | awk -F: '{ print $2 }' | sed 's/[ ",]//g' |
<div class="spinner-container"> | |
<svg class="spinner" width="65px" height="65px" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg"> | |
<circle class="path" fill="none" stroke-width="6" stroke-linecap="round" cx="33" cy="33" r="30"></circle> | |
</svg> | |
</div> |
const fs = require('fs'); | |
const walk = function (dir) { | |
let results = []; | |
const list = fs.readdirSync(dir); | |
list.forEach(function(file) { | |
file = dir + '/' + file; | |
const stat = fs.statSync(file); | |
if (stat && stat.isDirectory()) { | |
/* Recurse into a subdirectory */ | |
results = results.concat(walk(file)); |
/* | |
https://twig.symfony.com/doc/3.x/templates.html (note this is php but syntax is similar (mostly) | |
https://github.com/twigjs/twig.js/wiki/Implementation-Notes | |
*/ | |
const fs = require('fs'); | |
const Twig = require('twig'); | |
const renderFunction = Twig.twig; |
#debug build | |
keytool -exportcert -alias androiddebugkey -keystore debug.keystore | openssl sha1 -binary | openssl base64 | |
#release build | |
keytool -exportcert -alias <aliasName> -keystore release.keystore | openssl sha1 -binary | openssl base64 | |
#forgot alias of keystore for release build? run this | |
keytool -v -list -keystore release.keystore |
adb shell am start -W -a android.intent.action.VIEW -d “<INSERT_URL_HERE>” <INSERT_PACKAGE_NAME_HERE> |
// use like this | |
/* | |
@ExampleMethodDecorator({ | |
// whatever.... | |
foo: 2, | |
bar: 'foobar', | |
}) | |
*/ | |
export function ExampleMethodDecorator(configuration?: any): MethodDecorator { |