Skip to content

Instantly share code, notes, and snippets.

@mcolyer
mcolyer / updateclosing.js
Created May 31, 2014 14:50
My function for Google App Script to grab tickers
function updateClosingPrice() {
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
var positions = spreadsheet.getRangeByName('positions')
var values = positions.getValues();
var numRows = positions.getNumRows();
// Collect all of the symbols
var symbols = [];
for (var i = 0; i <= numRows - 1; i++) {
var row = values[i];
@mcolyer
mcolyer / chapters-to-sbv.rb
Created January 16, 2014 00:40
A very simple tool to convert from [subler](https://code.google.com/p/subler/) chapter export to SBV subtitle format so that youtube will accept it.
#!/usr/bin/env ruby
contents = File.read(ARGV[0])
values = {}
chapters = []
contents.each_line do |line|
key, value = line.split('=')
values[key] = value.strip
next if key =~ /NAME/
@mcolyer
mcolyer / build.sh
Last active December 16, 2015 03:59 — forked from stomita/build.sh
Build PhantomJS
#!/bin/bash
BUILDPACK_PREFIX=/home/ubuntu/phantomjs
PHANTOMJS_VERSION="1.9.0"
PHANTOMJS_DIR="phantomjs-${PHANTOMJS_VERSION}"
INCREMENT=v2
mkdir -p ${BUILDPACK_PREFIX}
sudo apt-get update
sudo apt-get install build-essential chrpath git-core libssl-dev libfontconfig1-dev -y
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="stomp.js"></script>
<script type="text/javascript">
//<![CDATA[
$(function(){
if ("WebSocket" in window) {
[mysqld]
innodb_buffer_pool_size=1000M
innodb_flush_method=O_DIRECT
innodb_thread_concurrency=8
#innodb_log_file_size=256M BROKEN
innodb_log_buffer_size=4M
#innodb_flush_log_at_trx_commit=2
# Q: What are the Field Tags that I can add to my messages?
A:
You can easily insert a tag into your email for your contact's first name, last name, phone number, or any other information that you have included for those contacts within your lists. Remember, you need to import this information for all contacts before you can reference it in your emails. If you have fields named:
* firstname
* lastname
* state
then you could include this data in your email with the corresponding tags
stat64("/usr/lib/mozilla/plugins/flashplugin-alternative.so", {st_mode=S_IFREG|0644, st_size=10131640, ...}) = 0
stat64("/usr/lib/mozilla/plugins/flashplugin-alternative.so", {st_mode=S_IFREG|0644, st_size=10131640, ...}) = 0
open("/usr/lib/mozilla/plugins/flashplugin-alternative.so", O_RDONLY) = 10
<img src="http://discover.heroku.com/ads/120x600.gif">
<img src="http://discover.heroku.com/ads/125x125.gif">
<img src="http://discover.heroku.com/ads/160x600.gif">
<img src="http://discover.heroku.com/ads/728x90.gif">
<script>
document.write("<img src=\"http://discover.heroku.com/ads/468x60.gif\" width=\"468\" height=\"60\" />")
</script>
usbmuxd: starting
usb_set_debug: Setting debugging level to 3 (on)
usbmuxd: Successfully dropped privileges
usbmuxd: waiting for connection
usbmuxd: new client connected (fd=5)
usbmuxd: usbmuxd_client_init_thread[426f3950]: started (fd=5)
usbmuxd: usbmuxd_client_init_thread[426f3950]: Got scan packet!
usb_os_init: Found USB VFS at /dev/bus/usb
usb_os_find_busses: Found 008
usb_os_find_busses: Found 006