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
package main | |
import ( | |
"encoding/json" | |
"log" | |
"net/http" | |
"time" | |
"github.com/jmoiron/sqlx" | |
// _ "github.com/lib/pq" |
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
class TransitionParser(object): | |
""" | |
An arc-eager transition parser | |
""" | |
def __init__(self, transition, feature_extractor): | |
self._dictionary = {} | |
self._transition = {} | |
self._match_transition = {} | |
self._model = 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
redis.1 | _._ | |
redis.1 | _.-``__ ''-._ | |
redis.1 | _.-`` `. `_. ''-._ Redis 3.0.5 (00000000/0) 64 bit | |
redis.1 | .-`` .-```. ```\/ _.,_ ''-._ | |
redis.1 | ( ' , .-` | `, ) Running in standalone mode | |
redis.1 | |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 | |
redis.1 | | `-._ `._ / _.-' | PID: 85668 | |
redis.1 | `-._ `-._ `-./ _.-' _.-' | |
redis.1 | |`-._`-._ `-.__.-' _.-'_.-'| | |
redis.1 | | `-._`-._ _.-'_.-' | http://redis.io |
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
Writing recovery.conf file | |
Creating the staging directory to hold the master's log files | |
DEBUG: 00000: invoking IpcMemoryCreate(size=14647296) | |
LOCATION: CreateSharedMemoryAndSemaphores, ipci.c:142 | |
DEBUG: 00000: SlruScanDirectory invoking callback on pg_notify/0000 | |
LOCATION: SlruScanDirectory, slru.c:1307 | |
DEBUG: 00000: removing file "pg_notify/0000" | |
LOCATION: SlruDeleteSegment, slru.c:1220 | |
DEBUG: 00000: InitPostgres | |
LOCATION: InitPostgres, postinit.c:506 |
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
The database cluster will be initialized with locale "en_US.utf8". | |
The default database encoding has accordingly been set to "UTF8". | |
The default text search configuration will be set to "english". | |
Data page checksums are disabled. | |
fixing permissions on existing directory /var/lib/postgresql/data ... ok | |
creating subdirectories ... ok | |
selecting default max_connections ... 100 | |
[2015-041.548093918Z] selecting default shared_buffers ... 128MB |
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
master: | |
image: mdillon/postgis:9.3 | |
ports: | |
- '5432:5432' | |
volumes: | |
- /import_data | |
- ./postgis/init-master.sh:/docker-entrypoint-initdb.d/init-master.sh | |
- ./postgis:/tmp/postgresql | |
restart: always | |
environment: |
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
// Application manifest | |
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.volkanunsal.mtawear" > | |
<uses-sdk android:minSdkVersion="18" | |
android:targetSdkVersion="21" /> | |
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> | |
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
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
# A CoffeeScript version of http://norvig.com/spell-correct.html | |
[fs, _] = [require("fs"), require("underscore")] | |
words = (text) -> text.toLowerCase().match /[a-z]+/g | |
train = (features) -> | |
model = {} | |
_.each features, (f) -> if model[f] then model[f] += 1 else model[f] = 1 | |
model |
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
gulp = require('gulp'); | |
lr = require('gulp-livereload'); | |
gulp.task('watch', function() { | |
lr.listen() | |
dest = ["app/views/**","app/assets/**"]; | |
gulp.watch(dest).on('change', function(file) { | |
lr.changed(file.path); | |
}); | |
}); |
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
{ | |
"kind": "civicinfo#voterInfoResponse", | |
"status": "success", | |
"election": { | |
"id": "4047", | |
"name": "NY 2014 Primary", | |
"electionDay": "2014-09-09" | |
}, | |
"normalizedInput": { | |
"line1": "2313 28th ave", |