Skip to content

Instantly share code, notes, and snippets.

👨‍💻

Raphael DDL Oliveira RaphaelDDL

👨‍💻
View GitHub Profile
@RaphaelDDL
RaphaelDDL / install.md
Created Feb 4, 2020 — forked from floehopper/install.md
Installing OSX Catalina from scratch
View install.md

List & install software updates

softwareupdate --list
sudo softwareupdate --verbose --install --all

Set computer name

COMPUTER_NAME="<computer-name>"
sudo scutil --set ComputerName $COMPUTER_NAME
View gist:7249129
// selectorSupported lovingly lifted from the mad italian genius, diego perini
// http://javascript.nwbox.com/CSSSupport/
function selectorSupported(selector){
var support, link, sheet, doc = document,
root = doc.documentElement,
head = root.getElementsByTagName('head')[0],
impl = doc.implementation || {
View gist:7125215
/*
* a smart poller for jquery.
* (by github)
*
* simple example:
*
* $.smartPoller(function(retry) {
* $.getJSON(url, function(data) {
* if (data) {
* doSomething(data)
View webkit-pseudo-elements.md

An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.

Everything is broken up by tag, but within each the selectors aren't particularly ordered.

I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A

A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:

-webkit-appearance:none;

View responsive_likebox.html
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
</head>
<body>
<div id="container" style="width:100%;">
<div class="fb-like-box" data-href="https://www.facebook.com/adobegocreate" data-width="292" data-show-faces="true" data-stream="true" data-header="true"></div>
</div>
View key-bindings.json
[
{
"keys": ["ctrl+w"],
"command": "run_multiple",
"args": {
"commands": [
{"command": "find_under_expand", "args": null, "context": "window"},
{"command": "show_panel", "args": {"panel": "find"}, "context": "window"}
]
}
View gist:5620685
// selectorSupported lovingly lifted from the mad italian genius, diego perini
// http://javascript.nwbox.com/CSSSupport/
function selectorSupported(selector){
var support, link, sheet, doc = document,
root = doc.documentElement,
head = root.getElementsByTagName('head')[0],
impl = doc.implementation || {
@RaphaelDDL
RaphaelDDL / Default (OSX).sublime-keymap
Last active Aug 29, 2015
RaphaelDDL's Default (OSX).sublime-keymap
View Default (OSX).sublime-keymap
[{
"keys": ["f12"],
"command": "reindent"
}, {
"keys": ["f10"],
"command": "js_format",
"context": [{
"key": "selector",
"operator": "equal",
"operand": "source.js,source.json"
@RaphaelDDL
RaphaelDDL / Preferences.sublime-settings
Last active Aug 29, 2015
RaphaelDDL's Preferences.sublime-settings
View Preferences.sublime-settings
{
"atomic_save": false,
"auto_complete_commit_on_tab": false,
"auto_complete_with_fields": true,
"bold_folder_labels": false,
"caret_extra_width": 1,
"color_scheme": "Packages/Theme - Flatland/Flatland Monokai.tmTheme",
"default_line_ending": "unix",
"detect_indentation": false,
"detect_slow_plugins": false,
You can’t perform that action at this time.