This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function acURL($url, $fields = array(), $method = 'POST') | |
{ | |
# Set method | |
$cmd = "curl -X ".$method; | |
# Build fields | |
foreach ($fields as $key => $value) { | |
$cmd .= " -F '".$key."'='".$value."'"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Mustache extends \Slim\View | |
{ | |
public function render($template) | |
{ | |
$mustache = new \Mustache_Engine( | |
array( | |
'loader' => new Mustache_Loader_FilesystemLoader(__DIR__.'/'), | |
// ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.profile-pic { | |
float: left; | |
width: 250px; | |
@include respond-to(xs) { | |
width: 100%; | |
} | |
@include respond-to(sm) { | |
width: 125px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.cursor.auto { | |
cursor: auto !important; | |
} | |
.cursor.crosshair { | |
cursor: crosshair !important; | |
} | |
.cursor.default { | |
cursor: default !important; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias gulp='gulp $1 --require coffee-script/register' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Ask for the administrator password upfront | |
sudo -v | |
# Save to disk (not to iCloud) by default | |
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false | |
# Kill finder | |
killall "Finder" > /dev/null 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<style type="text/css"> | |
body, html { | |
height: 100%; | |
background: #fff; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
defaults write com.apple.dock autohide-time-modifier -int 0 | |
defaults write com.apple.Dock autohide-delay -float 0 | |
killall Dock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.red.fill,.red.fill.light{background:#ff3b30}.red.fill path[fill],.red.fill.light path[fill]{fill:#ff3b30}.red.fill path[stroke],.red.fill.light path[stroke]{stroke:#ff3b30}.red.fill.dark{background:#ff453a}.red.fill.dark path[fill]{fill:#ff453a}.red.fill.dark path[stroke]{stroke:#ff453a}.red.stroke,.red.stroke.light{color:#ff3b30}.red.stroke path[fill],.red.stroke.light path[fill]{fill:#ff3b30}.red.stroke path[stroke],.red.stroke.light path[stroke]{stroke:#ff3b30}.red.stroke.dark{color:#ff453a}.red.stroke.dark path[fill]{fill:#ff453a}.red.stroke.dark path[stroke]{stroke:#ff453a}.orange.fill,.orange.fill.light{background:#ff9500}.orange.fill path[fill],.orange.fill.light path[fill]{fill:#ff9500}.orange.fill path[stroke],.orange.fill.light path[stroke]{stroke:#ff9500}.orange.fill.dark{background:#ff9f0a}.orange.fill.dark path[fill]{fill:#ff9f0a}.orange.fill.dark path[stroke]{stroke:#ff9f0a}.orange.stroke,.orange.stroke.light{color:#ff9500}.orange.stroke path[fill],.orange.stroke.light path[fill]{fill:#ff9500}. |