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
$ HOMEBREW_MAKE_JOBS=1 brew install -v llvm32 2>&1 | |
==> Installing dependencies for llvm32: isl011, cloog018 | |
==> Installing llvm32 dependency: isl011 | |
==> Downloading http://isl.gforge.inria.fr/isl-0.11.1.tar.bz2 | |
/usr/bin/curl -fLA Homebrew 0.9.5 (Ruby 1.8.7-358; Mac OS X 10.9.3) http://isl.gforge.inria.fr/isl-0.11.1.tar.bz2 -C 0 -o /Library/Caches/Homebrew/isl011-0.11.1.tar.bz2.incomplete --connect-timeout 5 | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 1215k 100 1215k 0 0 209k 0 0:00:05 0:00:05 --:--:-- 272k | |
==> Verifying isl011-0.11.1.tar.bz2 checksum | |
tar xf /Library/Caches/Homebrew/isl011-0.11.1.tar.bz2 |
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
'term': 'foo', | |
'EntrezSystem2.PEntrez.PubMed.Pubmed_PageController.PreviousPageName': 'results', | |
'EntrezSystem2.PEntrez.PubMed.Pubmed_PageController.SpecialPageName': '', | |
'EntrezSystem2.PEntrez.PubMed.Pubmed_Facets.FacetsUrlFrag': 'filters=', | |
'EntrezSystem2.PEntrez.PubMed.Pubmed_Facets.FacetSubmitted': 'false', | |
'EntrezSystem2.PEntrez.PubMed.Pubmed_Facets.BMFacets': '', | |
'EntrezSystem2.PEntrez.PubMed.Pubmed_ResultsPanel.Pubmed_DisplayBar.sPresentation': 'docsum', | |
'EntrezSystem2.PEntrez.PubMed.Pubmed_ResultsPanel.Pubmed_DisplayBar.sPageSize': '20', | |
'EntrezSystem2.PEntrez.PubMed.Pubmed_ResultsPanel.Pubmed_DisplayBar.sSort': 'none', | |
'EntrezSystem2.PEntrez.PubMed.Pubmed_ResultsPanel.Pubmed_DisplayBar.FFormat': 'docsum', |
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
var fs = require('fs'); | |
var path = require('path'); | |
var filePath = path.join(__dirname, '/g.txt'); | |
fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data) { | |
if (err) throw err; | |
console.log(data); | |
}); |
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
/<(?:.|\n)*?>/gm |
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
#!/usr/bin/env bash | |
# generate git log array in JSON: | |
git log \ | |
--pretty=format:'{%n "commit": "%H",%n "author": "%an <%ae>",%n "date": "%ad",%n "message": "%f"%n},' \ | |
$@ | \ | |
perl -pe 'BEGIN{print "["}; END{print "]\n"}' | \ | |
perl -pe 's/},]/}]/' > logAcc.json |
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/env node | |
var express = require('express'); | |
var fs = require('fs'); | |
var mongodb = require('mongodb'); | |
var App = function(){ | |
// Scope | |
var self = this; |
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
module.exports = { | |
"accept-charset" : "ISO-8859-1,utf-8;q=0.7,*;q=0.3", | |
"accept-language" : "en-US,en;q=0.8", | |
"accept" : "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", | |
"user-agent" : "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.13+ (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2", | |
"accept-encoding" : "gzip,deflate" | |
}; |
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
// | |
// ViewController.m | |
// image to video Apple SDK | |
// | |
// Created by Rex Fatahi on 12/20/14. | |
// Copyright (c) 2014 Rex Fatahi. All rights reserved. | |
// | |
#import "ViewController.h" | |
#import <AssetsLibrary/AssetsLibrary.h> |
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 iterateSelectOption(_select, _value) { | |
if (!_select || !_value) return; | |
for (var i = 0, len = _select.length; i < len; i++) { | |
if (_select.options[i].text === _value) return _select.options[i].selected = true; | |
} | |
} |
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
/* takes JS date as string */ | |
simplifyDateTime = function(dt) { | |
var _date = new Date(dt); | |
return 'made ' + (_date.getMonth() + 1) + '-' + _date.getUTCDate() + '-' + _date.getUTCFullYear(); | |
} |