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
<html> | |
<head> | |
<title>Animated Sparkline using SVG Path and d3.js</title> | |
<script src="http://mbostock.github.com/d3/d3.v2.js"></script> | |
<style> | |
/* tell the SVG path to be a thin blue line without any area fill */ | |
path { | |
stroke: steelblue; | |
stroke-width: 1; | |
fill: none; |
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
on alfred_script(q) | |
if q is missing value then | |
set listname to text returned of (display dialog "Please Enter a Name" default answer "") | |
else | |
set listname to q | |
end if | |
tell application "Safari" | |
set theurls to get URL of every tab of front window | |
set thetitles to get name of every tab of front window |
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 | |
# https://gist.github.com/949831 | |
# http://blog.carbonfive.com/2011/05/04/automated-ad-hoc-builds-using-xcode-4/ | |
# command line OTA distribution references and examples | |
# http://nachbaur.com/blog/how-to-automate-your-iphone-app-builds-with-hudson | |
# http://nachbaur.com/blog/building-ios-apps-for-over-the-air-adhoc-distribution | |
# http://blog.octo.com/en/automating-over-the-air-deployment-for-iphone/ | |
# http://www.neat.io/posts/2010/10/27/automated-ota-ios-app-distribution.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
<html> | |
<head> | |
<style> | |
*:not(html) { | |
-webkit-transform: translateZ(0); | |
-webkit-perspective: 1000; | |
-webkit-backface-visibility: hidden; | |
} | |
body { |
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
<html> | |
<head> | |
<style> | |
/* *:not(html) { | |
-webkit-transform: translateZ(0); | |
-webkit-perspective: 1000; | |
-webkit-backface-visibility: hidden; | |
-webkit-animation-timing-function: ease-in-out; | |
-webkit-animation-duration: 350ms; | |
} |
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
Requires NodeJS and npm. | |
Install prerequisites: | |
npm install qs minimist path-extra | |
Usage: gitlab-file-export [options] url_to_export | |
This is intended for exporting individual files from | |
the respository and does not support tree exports. | |
Options: |
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
#functions placed in /etc/zshenv | |
alias java_ls='/usr/libexec/java_home -V 2>&1 | grep -E "\d.\d.(\d_\d\d|\d)" | cut -d , -f 1 | colrm 1 4 | grep -v Home' | |
alias java_home='/usr/libexec/java_home' | |
function java_use() { | |
removeFromPath $(/usr/libexec/java_home)/bin | |
export JAVA_HOME=$(/usr/libexec/java_home -v $1) | |
export PATH=$JAVA_HOME/bin:$PATH | |
java -version | |
} |
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
/* | |
Copyright 2014 Les Stroud | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
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
curl -u aname "http://someserver/deploylist.xml" | xmllint --xpath '//deploy-name/text()' - | |
curl -u aname "http://someserver/deploylist.xml" | ruby -r nokogiri -e 'd=Nokogiri::XML($stdin); puts d.xpath("//deploy-name/text()")' | |
curl -u aname "http://someserver/deploylist.xml" | node -e "var i=process.stdin; i.resume(); i.on('data', function(d) { require('xpath').select('//deploy-name/text()', (new (require('xmldom')).DOMParser()).parseFromString(d.toString())).forEach(function(n){console.log(n.textContent);}); });" |
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 request = require('request'); | |
var cheerio = require('cheerio'); | |
var fs = require('fs'); | |
var auth = { | |
'user': 'appleid', | |
'pass': 'mypassword', | |
'sendImmediately': false | |
}; |
OlderNewer