Skip to content

Instantly share code, notes, and snippets.

View davecarter's full-sized avatar
:octocat:
coding like there is no tomorrow

David Garcia davecarter

:octocat:
coding like there is no tomorrow
View GitHub Profile
@davecarter
davecarter / entryPoint.js
Last active October 24, 2023 07:56
Domain entry point
import * as blockchainUseCases from "./blockchain/useCases"
import * as dexUseCases from "./dex/useCases"
import * as statsUseCases from "./stats/useCases"
import * as userUseCases from "./user/useCases"
const useCases = {
...blockchainUseCases,
...dexUseCases,
...statsUseCases,
...userUseCases,
@davecarter
davecarter / settings.json
Created April 4, 2022 19:07
VSCode Settings Linux
{
"explorer.confirmDelete": false,
"css.validate": true,
"less.validate": false,
"scss.validate": false,
"typescript.updateImportsOnFileMove.enabled": "always",
"javascript.updateImportsOnFileMove.enabled": "always",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
@davecarter
davecarter / .hyper.js
Created April 4, 2022 17:22
Hyper config file
"use strict";
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
activeTab: ':🚀:',
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
atom-csscomb@1.9.5
atom-pair@2.0.10
atom-wrap-in-tag@0.6.0
auto-reveal-active-file@0.3.1
color-picker@2.1.1
editorconfig@1.2.4
emmet@2.4.1
highlight-selected@0.11.2
language-babel@2.15.4
linter@1.11.4
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
plugins=(git npm nyan)
if [[ -x `which nc` ]]; then
alias nyan='nc -v nyancat.dakko.us 23' # nyan cat
fi
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
sudo curl -o /usr/local/bin/imgcat -O https://raw.githubusercontent.com/gnachman/iTerm2/master/tests/imgcat && sudo chmod +x /usr/local/bin/imgcat
# If you have a better way to fix the permissions, comment below!
@davecarter
davecarter / Node-to-NVM.md
Created February 10, 2016 15:35 — forked from nucliweb/Node-to-NVM.md
Node.js to Node Version Manager

Change Node.js to Node Version Manager

  • List all global packages installed in your system
ls /usr/local/lib/node_modules > ~/node-packages.txt
  • Remove all packages
@davecarter
davecarter / expandEmmet.sublime-keymap
Created November 20, 2015 07:53
Expand Emmet inside JSX
{
"keys": ["tab"],
"command": "expand_abbreviation_by_tab",
// put comma-separated syntax selectors for which
// you want to expandEmmet abbreviations into "operand" key
// instead of SCOPE_SELECTOR.
// Examples: source.js, text.html - source
"context": [
{
@davecarter
davecarter / Preferences.sublime-settings
Last active December 15, 2015 18:51
Sublime Text 3 Preferences
{
"bold_folder_labels": true,
"caret_extra_width": 1,
"caret_style": "phase",
"color_scheme": "Packages/User/SublimeLinter/Visual Studio Dark (SL).tmTheme",
"copy_with_empty_selection": false,
"draw_white_space": "all",
"fade_fold_buttons": false,
"flatland_sidebar_tree_large": true,
"flatland_square_tabs": true,

Sublime Text 3 on OS X Terminal

By creating link

Linking into /usr/bin with sudo:

$ sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/bin/sbl