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 | |
function toCSV(array $data, array $colHeaders = array(), $asString = false) { | |
$stream = ($asString) | |
? fopen("php://temp/maxmemory", "w+") | |
: fopen("php://output", "w"); | |
if (!empty($colHeaders)) { | |
fputcsv($stream, $colHeaders); | |
} |
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
// The parser expects a single node from a twitter feed and returns HTML | |
// Usage: | |
// var tweets = <some array with tweets from an API call>; | |
// Parse first tweet: | |
// var tweetHTML = TwitterParser.parseText(tweets[0]); | |
// console.log(tweetHTML); | |
(function (window, undefined) { | |
function escapeHTML(html) { | |
var text = document.createTextNode(html); |
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
// ---- | |
// Sass (v3.4.21) | |
// Compass (v1.0.3) | |
// ---- | |
body { | |
font-size: 1.2em; | |
} | |
@mixin not-really-a-mixin-but-damn-handy { |
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
@mixin mq($point, $query1: min, $query2: width, $IE9: false) { | |
@if $IE9 == true{ | |
.lt-ie9 & { | |
@content; | |
} | |
} | |
@if $query1 == "min" { | |
$point: $point + 1; | |
} |