Skip to content

Instantly share code, notes, and snippets.

View cliffordfajardo's full-sized avatar
🏠
Working from home

Clifford Fajardo cliffordfajardo

🏠
Working from home
View GitHub Profile

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@cliffordfajardo
cliffordfajardo / string_search.js
Created March 16, 2016 20:25 — forked from amoilanen/string_search.js
Rabin-Karp Algorithm for Searching Strings Implemented in JavaScript
function simpleSearch(text, str) {
var matches = [];
for (var i = 0; i <= text.length; i++) {
if (matchesAtIndex(i, text, str)) {
matches.push(i);
}
}
return matches;
}
@cliffordfajardo
cliffordfajardo / carousel.css
Created February 2, 2016 17:14
pure css carousel
@cliffordfajardo
cliffordfajardo / Preferences.sublime-settings
Created January 30, 2016 14:31
My Sublime text 3 settings
{
"tab_size": 2,
"translate_tabs_to_spaces": true,
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"theme": "Material-Theme-Darker.sublime-theme",
"font_options":
[
"gray_antialias"
@cliffordfajardo
cliffordfajardo / quotes.md
Last active February 15, 2022 18:11
My quotes

TODO: create a mini-web app that will allow me to store all these quotes.

  • I can implement this in a day and make it a progressive web app with offline capabilities by the end of the week.
  • Basic have:
  • label to view all
  • allow tagging: most quotes can fall under multiple categories. Handling this in plain text is a pain in the butt.

My Favorite Quotes

Table of Contents

@cliffordfajardo
cliffordfajardo / 0_reuse_code.js
Created January 28, 2016 20:58
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@cliffordfajardo
cliffordfajardo / gist:6285266bbdecfe7f9524
Created January 26, 2016 21:15
Make 'subl' command for sublime text on OSX
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
@cliffordfajardo
cliffordfajardo / .gitignore
Created January 24, 2016 19:10
My gitignore file
### node etc ###
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
@cliffordfajardo
cliffordfajardo / .editorconfig
Created January 24, 2016 19:08
My editor config
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
# Change these settings to your own preference
@cliffordfajardo
cliffordfajardo / .jshintrc
Created January 24, 2016 19:05
My jshintrc file
{
// JSHint Default Configuration File (as on JSHint website)
// See http://jshint.com/docs/ for more details
"maxerr" : 50, // {int} Maximum error before stopping
// Enforcing
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase" : false, // true: Identifiers must be in camelCase
"curly" : true, // true: Require {} for every new block or scope