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
@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 / 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 / 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 / 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 / carousel.css
Created February 2, 2016 17:14
pure css carousel
@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;
}

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 / trello-md-code-highlight.js
Created July 29, 2017 20:31 — forked from AsyncWizard/trello-md-code-highlight.js
Trello markdown code syntax highlight.
// ==UserScript==
// @name Trello Syntax Highlight
// @namespace https://gist.github.com/AsyncWizard
// @version 0.1
// @description try to take over the world!
// @author AsyncWizard
// @require https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/highlight.min.js
// @resource https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/styles/github.min.css
// @match https://trello.com/*
// @grant none
@cliffordfajardo
cliffordfajardo / deep-work-quotes.md
Last active February 15, 2022 18:08
Quotes from Cal Newport's Deep Work book

Deep Work Quotes

Deep Work Video


Introductory Quotes into the Topic of Deep Work:

  • “Deep Work: Professional activities performed in a state of distraction-free concentration that push your cognitive capabilities to their limit. These efforts create new value, improve your skill, and are hard to replicate.” (3)

    • Deep work is necessary to wring every last drop of value out of your current intellectual capacity. We now know from decades of research in both psychology and neuroscience that the state of mental strain that accompanies deep work is also necessary to improve your abilities.” (3)
  • “Shallow Work: Noncognitively demanding, logistical-style tasks, often performed while distracted. These efforts tend to not create much new value in the world and are easy to replicate.” (6)

@cliffordfajardo
cliffordfajardo / file1.1.txt
Last active August 16, 2019 22:44
new description
file1content
new line