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
// | |
// Phoneme.swift | |
import Foundation | |
class Phoneme { | |
private var isAVowelPhoneme = false; | |
private var phoneme = ""; |
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
import datetime | |
import logging | |
import socket | |
import ssl | |
YOUR_DOMAIN = 'serverlesscode.com' | |
WARNING_BUFFER = 14 | |
logger = logging.getLogger() | |
logger.setLevel(logging.INFO) |
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
Author | Title | ISBN | Binding | Year Published | |
---|---|---|---|---|---|
Jeannette Walls | The Glass Castle | 074324754X | Paperback | 2006 | |
James Surowiecki | The Wisdom of Crowds | 9780385503860 | Paperback | 2005 | |
Lawrence Lessig | The Future of Ideas | 9780375505782 | Paperback | 2002 | |
Larry Bossidy, Ram Charan, Charles Burck | Execution | 9780609610572 | Hardcover | 2002 | |
Kurt Vonnegut | Slaughterhouse-Five | 9780791059258 | Paperback | 1999 | |
Haruki Murakami | After the Quake | 9780375413902 | Paperback | 2003 | |
Nassim Nicholas Taleb | Fooled by Randomness | 9781587991905 | Paperback | 2005 | |
Robert A. Dahl | On Democracy (Yale Nota Bene) | 9780300194463 | Paperback | 2000 | |
Daniel Defoe | A Journal of the Plague Year | 9780140430158 | Paperback | 2001 |
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
xquery version "3.0"; | |
(:~ | |
: Anonymous function recursion in XQuery | |
: | |
: @author Adam Retter <[email protected]> | |
:) | |
let $factorialHelper := function($f, $x) { | |
if($x eq 0) then |
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
#!/usr/bin/env ruby | |
require 'bundler/setup' | |
require 'lbp' | |
puts "welcome to the scta index loader" | |
puts "i'm going to help you load git repos into the existdb database" | |
local_load_dir = "/Volumes/db-1/apps/scta/" | |
remote_load_dir = "/Volumes/db/apps/scta/" | |
use_load_dir = remote_load_dir |
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
xquery version "3.0"; | |
declare function local:say-howdy ($name as xs:string*) as xs:string | |
{ | |
if (fn:count($name) >1) then "Howdy, " || fn:string-join($name, " and ") || "!" | |
else "Howdy, " || $name || "!" | |
}; | |
(: local:say-howdy("Dave") :) | |
local:say-howdy(("Dave", "Laura")) |
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
# Load libraries | |
library(ggplot2) | |
library(Quandl) | |
# Load datasets from Quandl | |
USA <- Quandl("WORLDBANK/USA_NY_GDP_MKTP_KD_ZG", authcode="[TOKEN") | |
China <- Quandl("WORLDBANK/CHN_NY_GDP_MKTP_KD_ZG", authcode="[TOKEN") | |
# Merge datasets into single table | |
Comp <- China |
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
xquery version "3.0"; | |
(:~ | |
: A facet library module | |
: | |
: Builds facets from nodes passed by search or browse modules. | |
: Uses group by | |
: Built for use with eXistdb, if using with eXistdb be sure to define your range | |
: indexes in your collectio.xconf file for best performance. | |
: | |
: @author Winona Salesky |
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
xquery version "3.0"; | |
<cities>{ | |
let $names := | |
"Adelaide | |
Adelaide | |
Adelaide and Windsor | |
Adelaide Station | |
Agangarrive Hill | |
Aghadovey | |
Aghadowey |
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
// PARSE LOCAL OPML FILE IN OS X 10.10 JXA USING $.NSXMLDocument | |
// Ver 2.0 Parse all attributes (ver 1 just parsed text) | |
function run() { | |
var app = Application.currentApplication(); | |
app.includeStandardAdditions = true; | |
function readTextFromFile(strPath) { | |
return $.NSString.stringWithContentsOfFile(strPath); | |
} | |