Skip to content

Instantly share code, notes, and snippets.

View Dottenpixel's full-sized avatar

dugg molidor Dottenpixel

View GitHub Profile
<!DOCTYPE html>
<html lang="en" id="facebook" class="no_js">
<head><meta charset="utf-8" /><meta name="referrer" content="origin-when-crossorigin" id="meta_referrer" /><script>window._cstart=+new Date();</script><script>function envFlush(a){function b(c){for(var d in a)c[d]=a[d];}if(window.requireLazy){window.requireLazy(['Env'],b);}else{window.Env=window.Env||{};b(window.Env);}}envFlush({"ajaxpipe_token":"AXgoZ_XrDkw8k1Lr","lhsh":"rAQGMMCaH","khsh":"0`sj`e`rm`s-0fdu^gshdoer-0gc^eurf-3gc^eurf;1;enbtldou;fduDmdldourCxO`ld-2YLMIuuqSdptdru;qsnunuxqd;rdoe-0unjdojnx-0unjdojnx0-0gdubi^rdbsduOdv-0`sj`e`r-0q`xm`r-0StoRbs`qhof-0mhoj^q`xm`r","timeslice_heartbeat_config":{"pollIntervalMs":33,"idleGapThresholdMs":60,"ignoredTimesliceNames":{"requestAnimationFrame":true,"Event listenHandler mousemove":true,"Event listenHandler mouseover":true,"Event listenHandler mouseout":true,"Event listenHandler scroll":true},"enableOnRequire":false},"shouldLogCounters":false,"timeslice_categories":{"react_render":true,"reflow":true}})
@Dottenpixel
Dottenpixel / input.scss
Created December 10, 2020 23:54
Generated by SassMeister.com.
@font-face {
font-family: 'My Sans';
}
.slds-badge {
background-color: token("var(--foo, "+#{runtimeVar}+")");
}
@Dottenpixel
Dottenpixel / input.scss
Created December 9, 2020 21:05
Generated by SassMeister.com.
@font-face {
font-family: 'Salesforce Sans';
}
.slds-badge {
background-color: token("var(--sds-c-badge-color-background, "+#{colorBackgroundDark}+")");
}
@Dottenpixel
Dottenpixel / .bash-git-aliases
Last active April 5, 2018 16:42
Git Command Alias Bash File
alias gad='git add'
alias gai='git add -i'
alias gst='git status'
alias gdf='git diff'
alias gl='git pull'
alias glrom='git pull -r origin master'
alias gp='git push'
alias gpoh='git push origin HEAD'
alias gd='git diff | mate'
alias gau='git add --update'
@Dottenpixel
Dottenpixel / gist:50b567e31c2b5c17a58414709cbc0be0
Created March 2, 2017 09:11 — forked from tonymtz/gist:d75101d9bdf764c890ef
Uninstall nodejs from OSX Yosemite
# first:
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following:
# go to /usr/local/lib and delete any node and node_modules
cd /usr/local/lib
sudo rm -rf node*
@Dottenpixel
Dottenpixel / 70e04a67f1f5fd96a708.md
Created May 17, 2016 22:15 — forked from oshliaer/70e04a67f1f5fd96a708.md
Extract Gmail content to a spreadsheet #gas #gmail #sheet
@Dottenpixel
Dottenpixel / dabblet.css
Last active April 14, 2016 19:15 — forked from anonymous/dabblet.css
Untitled
div{
position: relative;
display:block;
padding:5px;
margin:10px;
border:1px solid #ccc;
transition: 0s background-color;
div {
position: absolute;
top: -5px;
@Dottenpixel
Dottenpixel / reducers.js
Last active February 4, 2016 07:03 — forked from gaearon/reducers.js
How I'd do code splitting in Redux (pseudo code, not tested!) Referred by: https://github.com/rackt/redux/issues/37#issue-85098222
import { combineReducers } from 'redux';
import users from './reducers/users';
import posts from './reducers/posts';
export default function createReducer(asyncReducers) {
return combineReducers({
users,
posts,
...asyncReducers
});
@Dottenpixel
Dottenpixel / promises.md
Created February 2, 2016 23:25 — forked from domenic/promises.md
You're Missing the Point of Promises

This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.

You're Missing the Point of Promises

Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:

getTweetsFor("domenic", function (err, results) {
 // the rest of your code goes here.
@Dottenpixel
Dottenpixel / gist:6789319
Created October 2, 2013 05:01
gem list for rvm 2.0.0@refinery
actionmailer (3.2.14)
actionpack (3.2.14)
activemodel (3.2.14)
activerecord (3.2.14)
activeresource (3.2.14)
activesupport (3.2.14)
acts_as_indexed (0.8.3)
arel (3.0.2)
awesome_nested_set (2.1.6)
awesome_print (1.1.0)