I hereby claim:
- I am juancaicedo on github.
- I am juancaicedo (https://keybase.io/juancaicedo) on keybase.
- I have a public key ASDExytt9hYizi26VsDxHDRFAhuOwFuxY8cuN15ajgVZNAo
To claim this, I am signing this object:
| #! /usr/bin/env bash | |
| osascript <<EOF | |
| display notification "$1" with title "$2" | |
| EOF |
I hereby claim:
To claim this, I am signing this object:
| ;; -*- mode: emacs-lisp -*- | |
| ;; This File is loaded by Spacemacs at startup. | |
| ;; It must be stored in your home directory. | |
| (defun dotspacemacs/layers () | |
| "Configuration Layers declaration. | |
| You should not put any user code in this function besides modifying the variable | |
| values." | |
| (setq-default | |
| ;; Base distribution to use. This is a layer contained in the directory |
| #!/usr/bin/env coffee | |
| process.setMaxListeners(0) | |
| penthouse = require('penthouse') | |
| path = require('path') | |
| fs = require('fs') | |
| _ = require('lodash') | |
| async = require('async') | |
| os = require('os') |
| local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" | |
| local nvm_node='' | |
| nvm_node='%{$fg[green]%}‹node-$(nvm_prompt_info)›%{$reset_color%}' | |
| local git_branch='$(git_prompt_info)%{$reset_color%}' | |
| PROMPT='$(nvm_prompt_info) $(git_prompt_info) | |
| %{$fg[cyan]%}%c ${ret_status}%{$reset_color%}' | |
| ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg[red]%}" |
| ;; if using spacemacs, place this code inside dotspacemacs/user-config | |
| ;; otherwise, just put it in .emacs | |
| (defun insert-console-log () | |
| "Insert console.log of the variable at point." | |
| (interactive) | |
| (let ((beg nil) | |
| (end nil)) | |
| (back-to-indentation) | |
| (setq beg (point)) |
| struct Action { | |
| _type: String, | |
| amount: u32 | |
| } | |
| fn update_counter(state:32, action: Action) { | |
| let Action {_type, amount} = action; | |
| return match _type.as_ref() { | |
| "INCREMENT" => state + amount, | |
| "DECREMENT" => state - amount, |
| struct Action { | |
| _type: String, | |
| amount: u32 | |
| } | |
| fn update_counter(state:u32, action: Action) { | |
| let Action {_type, amount} = action; | |
| return match _type.as_ref() { | |
| "INCREMENT" => state + amount, | |
| "DECREMENT" => state - amount, |
| struct Action { | |
| _type: String, | |
| amount: u32 | |
| } | |
| fn update_counter(state:u32, action: Action) { | |
| let Action {_type, amount} = action; | |
| return match _type.as_ref() { | |
| "INCREMENT" => state + amount, | |
| "DECREMENT" => state - amount, |