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
Process: SpringBoard [10847] | |
Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/CoreServices/SpringBoard.app/SpringBoard | |
Identifier: SpringBoard | |
Version: ??? | |
Code Type: X86-64 (Native) | |
Parent Process: launchd_sim [10833] | |
Responsible: launchd_sim [10833] | |
User ID: 501 | |
Date/Time: 2015-04-30 14:37:11.218 -0400 |
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
with open("message", 'r') as f: | |
data = f.read() | |
tranlation_map = { | |
"3": "e", | |
"5": "s", | |
"0": "o", | |
"6": "g", | |
"4": "a", | |
"7": "t", |
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
/* eb-app error messages */ | |
#eb-app-message.alert {margin: 10px auto;width:690px;padding:8px 35px 8px 14px;border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;text-shadow:none;background-color:#d44a26;border-top-color:#d44a26;border-right-color-value:#d44a26;border-bottom-color:#d44a26;border-left-color-value:#d44a26;color:#ffffff;background-color:#d44a26;border:1px solid#fbeed5;position:relative;} | |
#eb-app-message.alert-danger,#eb-app-message.alert-error {color:#ffffff;background-color:#bc1c48;border-top-color:#bc1c48;border-right-color-value:#bc1c48;border-bottom-color:#bc1c48;border-left-color-value:#bc1c48;} | |
#eb-app-message.alert-success {color:#ffffff;background-color:#01a31c;border-top-color:#01a31c;border-right-color-value:#01a31c;border-bottom-color:#01a31c;border-left-color-value:#01a31c;} | |
#eb-app-message.alert-info {color:#ffffff;background-color:#2d89f0;border-top-color:#2d89f0;border-right-color-value:#2d89f0;border-bottom-color:#2d89f |
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
from os import walk | |
from os.path import join | |
from sys import argv | |
from pprint import pprint | |
def collect_paths(path): | |
file_paths = [] | |
for root, dirs, files in walk(path, topdown=False): | |
for f in files: | |
file_paths.append(join(root, f)) |
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 ( | |
"bytes" | |
"fmt" | |
"math" | |
"strings" | |
) | |
func CalculateIndex(row int, col int, width int) (result int) { |
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
import csv | |
from bitarray import bitarray | |
from nltk.stem.porter import PorterStemmer | |
from nltk import word_tokenize, sent_tokenize | |
def read_data(): | |
with open("clean_analytics_content_frozenfood_large.csv", "r") as f: | |
reader = csv.reader(f) | |
return [row[7].lower() for row in reader][1:] |
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 net.problemsolutions.scandium.nlptest; | |
import java.io.*; | |
import java.nio.charset.Charset; | |
import java.util.Iterator; | |
import java.util.concurrent.ExecutionException; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.TimeUnit; |
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
static int | |
find_reusable_reload (rtx *p_in, rtx out, enum reg_class rclass, | |
enum reload_type type, int opnum, int dont_share) | |
{ | |
rtx in = *p_in; | |
int i; | |
/* We can't merge two reloads if the output of either one is | |
earlyclobbered. */ | |
if (earlyclobber_operand_p (out)) |
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 net.problemsolutions.test; | |
import java.net.UnknownHostException; | |
import java.util.concurrent.ExecutionException; | |
import com.basho.riak.client.api.*; | |
import com.basho.riak.client.api.cap.Quorum; | |
import com.basho.riak.client.api.commands.kv.StoreValue; | |
import com.basho.riak.client.core.query.*; | |
import com.basho.riak.client.core.util.*; | |
/** |
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
#!/usr/bin/env python | |
from requests import get | |
from urlparse import urljoin | |
from pprint import pprint | |
import argparse | |
import pyes | |
import pyes.mappings | |
_INDEX_NAME = "xapi" | |
_DOC_TYPE = "xapi" | |
mapping = { |
NewerOlder