Skip to content

Instantly share code, notes, and snippets.

View bidah's full-sized avatar

Rodrigo Figueroa bidah

View GitHub Profile
@andrew8088
andrew8088 / Move-to-Dropbox-public-folder.applescript
Created August 2, 2011 00:42
This AppleScript (for use in Keyboard Maestro) will copy the file selected in the Finder to your public dropbox folder and copy the public link to the file to your clipboard. Don't forget to change The XXXXXX to your public "ID".
-- Add file to Dropbox Script
-- Andrew Burgess, modified a bit from http://www.bencardy.co.uk/blog/dropbox-applescript/
-- You'll have to change the first part of your Dropbox URL, in the filePath variable
-- Also, make sure the myPath variable points in the right direction
on splitText(delimiter, someText)
set prevTIDs to AppleScript's text item delimiters
set AppleScript's text item delimiters to delimiter
set output to text items of someText
@vdrnn
vdrnn / dabblet.css
Created July 30, 2013 20:43 — forked from LeaVerou/dabblet.css
Loading animation like the one seen on http://www.freeger.com/projects/contextad/ with CSS
/**
* Loading animation like the one seen on http://www.freeger.com/projects/contextad/ with CSS
* Caveat: Not DRY. The content needs to be repeated in a data- attribute (or directly in the CSS).
*/
body {
background: #ccc51c;
min-height: 100%;
}
{
"schema_version": "1.2",
"packages": [
{
"name": "zenburn",
"description": "Zenburn color scheme.",
"author": "Colin T.A. Gray (colinta)",
"homepage": "http://colinta.com/projects/zenburn_color_scheme.html",
"releases": [
{
@botaor
botaor / Defer.html
Created January 2, 2014 14:20
Defer loading of Javascript files untill the page is already loaded
<script type="text/javascript">
function downloadJSAtOnload() {
var element = document.createElement("script");
element.src = "defer.js";
document.body.appendChild(element);
}
if (window.addEventListener)
window.addEventListener("load", downloadJSAtOnload, false);
else if (window.attachEvent)
window.attachEvent("onload", downloadJSAtOnload);
@carwin
carwin / private.xml
Last active July 27, 2017 15:06
Programmer's Shift Keys: Remapping parens, brackets and braces for to because nerd.
<?xml version="1.0"?>
<root>
<item>
<name>Programmer's Shift Keys</name>
<!--
Author: Carwin Young (@carwin)
Last Updated: 2014.07.18
v.1.1
Programmer's Shift Keys
@vangberg
vangberg / README
Created February 22, 2009 01:06
Deploying a Sinatra app to Heroku
# Deploying a Sinatra app to Heroku
## Database
The location of the database Heroku provides can be found in the environment
variable DATABASE_URL. Check the configure-block of toodeloo.rb for an example
on how to use this.
## Server
Heroku is serving your apps with thin, with means you have all your thin goodness available,
such as EventMachine.
@ivanyv
ivanyv / application.amp.erb
Created December 12, 2015 02:51
Easy Google AMP on Rails
<html>
<head>
<link rel="canonical" href="<%= current_uri_sans_amp %>">
</head>
...
</html>
@dlaroe
dlaroe / Gherkin-Layout.kbd.json
Last active September 10, 2019 00:49
Gherkin Layout
[
{
"name": "Gherkin Layout",
"author": "https://www.reddit.com/user/di0ib"
},
[
{
"d": true
},
"<h4>Zero</h4>",
@ChristopherBiscardi
ChristopherBiscardi / yarn-workspace.sh
Last active November 22, 2019 20:05
yarn workspace command
# yw develop
yw() {
yarn workspace $(yarn workspaces info --json | jq '.data' -r | jq "[keys][0] []" -r | fzf) $@
}
@jaydenseric
jaydenseric / zeit-now-g-suite-setup.md
Created March 20, 2017 04:46
Zeit Now G Suite setup

Run each of the following lines, replacing yourdomain.com and codehere with your details:

now dns add yourdomain.com @ TXT google-site-verification=codehere
now dns add yourdomain.com @ MX ASPMX.L.GOOGLE.COM 1
now dns add yourdomain.com @ MX ALT1.ASPMX.L.GOOGLE.COM 5
now dns add yourdomain.com @ MX ALT2.ASPMX.L.GOOGLE.COM 5
now dns add yourdomain.com @ MX ALT3.ASPMX.L.GOOGLE.COM 10
now dns add yourdomain.com @ MX ALT4.ASPMX.L.GOOGLE.COM 10