This file contains hidden or 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
| Name,Age,Allowance | |
| Chris,30,$75.00 | |
| Sam,12,$15.00 | |
| Sue,8,$10.00 |
This file contains hidden or 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
| // Connect to the API | |
| String domain = "saxon.socrata.com"; | |
| String username = "<youremail>"; | |
| String password = "<yourpass>"; | |
| String appToken = "<yourapptoken>"; | |
| Connection connection = new HttpConnection(domain, username, password, appToken); | |
| // Connect to the view | |
| View view = View.find("ry7h-n6bk", connection); |
This file contains hidden or 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/sh | |
| # Gist doesn't like the tab character for some reason, so replace it with an actual tab (ctrl-v, tab) | |
| sed 's/<tab>//' | sed 's/ //g' | sed 's/^"//' | sed 's/","/ /g' | sed 's/"$//' | sed 's/"//g' |
This file contains hidden or 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
| package com.socrata.geotoolbox; | |
| import au.com.bytecode.opencsv.CSVReader; | |
| import joptsimple.OptionParser; | |
| import joptsimple.OptionSet; | |
| import java.io.FileReader; | |
| import java.io.InputStreamReader; | |
| public class RecordCount { | |
| public static void main(String[] args) throws Exception { |
This file contains hidden or 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
| ffmpeg -i "%05d.JPG" -vcodec libx264 -crf 20 -threads 0 video.mp4 |
This file contains hidden or 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
| parallel convert -scale 1920x -crop 1920x1080+0+210 {} Cropped_and_Resized/{/} ::: In_Sequence/* |
This file contains hidden or 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
| diff -up dwm-5.8.2/config.def.h dwm-5.8.2-patched/config.def.h | |
| --- dwm-5.8.2/config.def.h 2010-06-04 06:39:15.000000000 -0400 | |
| +++ dwm-5.8.2-patched/config.def.h 2011-06-07 14:12:55.000000000 -0400 | |
| @@ -14,7 +14,8 @@ static const Bool showbar = Tr | |
| static const Bool topbar = True; /* False means bottom bar */ | |
| /* tagging */ | |
| -static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; | |
| +#define MAX_TAGLEN 16 | |
| +static char tags[][MAX_TAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; |
This file contains hidden or 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
| diff -up dwm-5.8.2/config.def.h dwm-5.8.2.patched/config.def.h | |
| --- dwm-5.8.2/config.def.h 2010-06-04 06:39:15.000000000 -0400 | |
| +++ dwm-5.8.2.patched/config.def.h 2011-05-18 11:31:44.000000000 -0400 | |
| @@ -14,7 +14,8 @@ static const Bool showbar = Tr | |
| static const Bool topbar = True; /* False means bottom bar */ | |
| /* tagging */ | |
| -static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; | |
| +#define MAX_TAGLEN 16 | |
| +static char tags[][MAX_TAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; |
This file contains hidden or 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/sh | |
| SPACE="SERVER$(spacefinder | sed 's/Current Space ID: //')" | |
| mvim --serverlist | grep $SPACE | |
| if [ $? -eq 1 ] | |
| then | |
| mvim --servername $SPACE $* | |
| else | |
| mvim --servername $SPACE --remote $* | |
| fi |
This file contains hidden or 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
| # Decide whether this is text or phone | |
| if $currentCall.nil? | |
| log "Curious. No currentCall. Am I running outside Tropo?" | |
| elsif $currentCall.initialText.nil? | |
| # Phone call | |
| say "Welcome to the King County Christmas Tree Recycling Line." | |
| # Setting up our options for "ask". We accept 5 digits, either spoken or entered | |
| # by DTMF, and time out after 10 seconds. | |
| zipcode_options = { :choices => "[5 DIGITS]", |