Skip to content

Instantly share code, notes, and snippets.

View BerkeleyTrue's full-sized avatar
💭
Baby Yoda is my spirit animal

Berkeley Martinez BerkeleyTrue

💭
Baby Yoda is my spirit animal
View GitHub Profile
@BerkeleyTrue
BerkeleyTrue / gfold.log
Created May 16, 2022 15:41
GFOLD_4_DEBUG
[2022-05-16T15:39:47Z DEBUG gfold] initialized logger
[2022-05-16T15:39:47Z DEBUG gfold::cli] collected args
[2022-05-16T15:39:47Z DEBUG gfold::cli] loaded initial config
[2022-05-16T15:39:47Z DEBUG gfold::cli] finalized config options
[2022-05-16T15:39:47Z DEBUG gfold::report::target] found target: "/home/berkeleytrue/dvlpmnt/workstation"
[2022-05-16T15:39:47Z DEBUG gfold::report::target] found target: "/home/berkeleytrue/dvlpmnt/zsh/ghanima"
[2022-05-16T15:39:47Z DEBUG gfold::report::target] found target: "/home/berkeleytrue/dvlpmnt/completion-nvim"
[2022-05-16T15:39:47Z DEBUG gfold::report::target] found target: "/home/berkeleytrue/dvlpmnt/keyboards/qmk_firmware_back"
[2022-05-16T15:39:47Z DEBUG gfold::report::target] found target: "/home/berkeleytrue/dvlpmnt/projects/foe"
[2022-05-16T15:39:47Z DEBUG gfold::report::target] found target: "/home/berkeleytrue/dvlpmnt/nvim-treesitter"
@BerkeleyTrue
BerkeleyTrue / lsp.log
Last active March 10, 2022 02:05
Lsp log for html emmet style
[START][2022-03-09 18:04:36] LSP logging initiated
[INFO][2022-03-09 18:04:36] .../vim/lsp/rpc.lua:261 "Starting RPC client" {
args = { "--stdio" },
cmd = "tailwindcss-language-server",
extra = {
cwd = "/home/berkeleytrue/dvlpmnt/node/apps/berkeleytrue.com"
}
}
[TRACE][2022-03-09 18:04:36] .../lua/vim/lsp.lua:892 "LSP[tailwindcss]" "initialize_params" {

Keybase proof

I hereby claim:

  • I am berkeleytrue on github.
  • I am berkeleytrue (https://keybase.io/berkeleytrue) on keybase.
  • I have a public key ASD1MZchoq-cqZLSU9kXEzrmAeDyVXR_DI9v_bk_19me8Qo

To claim this, I am signing this object:

@BerkeleyTrue
BerkeleyTrue / .travis.yml
Created June 5, 2018 03:35
greenkeeper lockfile install with npm ci
language: node_js
node_js:
- '8'
- '10'
before_install:
- if [[ `npm -v` != 6* ]]; then npm install -g npm@6; fi
- npm install -g greenkeeper-lockfile
class MyComponent extends React.Component {
constructor() {
this.handleClick = this.handleClick.bind(this);
}
handleClick(e) {
console.log('Parameter', this.props.param);
console.log('Event', e);
}
@BerkeleyTrue
BerkeleyTrue / event-handlers-with-parameters-bind-constructor.js
Last active November 30, 2017 18:56 — forked from sanketmeghani/event-handlers-with-parameters-bind-constructor.js
React event handler with parameters using bind in constructor
class MyComponent extends React.Component {
constructor() {
this.handleClick = this.handleClick.bind(this, 'Parameter');
}
handleClick(param, e) {
console.log('Parameter', param);
console.log('Event', e);
}
@BerkeleyTrue
BerkeleyTrue / .profile
Created September 2, 2017 03:12
Checkout remote pull request
gcorpullrequest() {
# gcorpullrequest 123 upstream
# gcorpullrequest 124
remote=origin
echo "What do you want to call the local branch?"
read branchname
if [ $# = 2 ]; then
{
"title": "SpaceKeys",
"rules": [
{
"description": "l/r shift => ()",
"manipulators": [
{
"description": "Change left shift press to (",
"from": {
"key_code": "left_shift",
function epic(actions){
return actions.ofType('FOO')
.mergeMap(action => {
const transformed = transform(action); // may throw collapsing the pipe
return makeThingDoAsyncy(transform)
.catch(e => [foo(e)]); // won't catch above
});
}
// imperative
@BerkeleyTrue
BerkeleyTrue / np.sh
Created April 7, 2017 17:19 — forked from stevemao/np.sh
Publish node module
# npm publish with goodies
# prerequisites:
# `npm install -g trash conventional-recommended-bump conventional-changelog conventional-github-releaser conventional-commits-detector json`
# `np` with optional argument `patch`/`minor`/`major`/`<version>`
# defaults to conventional-recommended-bump
# and optional argument preset `angular`/ `jquery` ...
# defaults to conventional-commits-detector
np() {
travis status --no-interactive &&
trash node_modules &>/dev/null;