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 com.classifyr.hello_world | |
import android.app.Activity | |
import android.widget.Button | |
import android.widget.Toast | |
import android.view.View | |
import android.view.View.OnClickListener | |
import android.hardware.SensorManager |
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
TVPPanelBar_i0_i0_FromLocationControl_RecentDynamicComboBox_ClientState:{"SelectedIndex":-1,"ReQueryText":""} | |
TVPPanelBar_i0_i0_FromLocationControl_StopMunicipalityDynamicComboBox_ClientState:{"SelectedIndex":0,"ReQueryText":"JACKSONVILLE"} | |
TVPPanelBar_i0_i0_FromLocationControl_StopMunicipalityDynamicComboBoxManager_ClientState:{"ChildIdsCount":1,"ChildIds0":"Sys.Application.findComponent(\u0027TVPPanelBar_i0_i0_FromLocationControl_StopDynamicComboBox\u0027)","ParentIdsCount":0,"ManagedDynamicComboBoxID":"Sys.Application.findComponent(\u0027TVPPanelBar_i0_i0_FromLocationControl_StopMunicipalityDynamicComboBox\u0027)"} | |
TVPPanelBar_i0_i0_FromLocationControl_StopDynamicComboBox_ClientState:{"SelectedIndex":-1,"ReQueryText":""} | |
TVPPanelBar_i0_i0_FromLocationControl_StopDynamicComboBoxManager_ClientState:{"ChildIdsCount":0,"ParentIdsCount":1,"ParentIds0":"Sys.Application.findComponent(\u0027TVPPanelBar_i0_i0_FromLocationControl_StopMunicipalityDynamicComboBox\u0027)","ManagedDynamicComboBoxID":"Sys.Application.fin |
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
s[{"value":"aSRpbnRlcnNlY3Rpb25fc3RyZWV0X25hbWU9UEFSSyxpbnRlcnNlY3Rpb25fc3RyZWV0X211bmljaXBhbGl0eT1KQUNLU09OVklMTEUsaW50ZXJzZWN0aW9uX3N0cmVldF90eXBlPVNULGludGVyc2VjdGlvbl9zdHJlZXRfb3JpZW50YXRpb249LGludGVyc2VjdGlvbl9pbnRlcl9uYW1lPVJPT1NFVkVMVCxpbnRlcnNlY3Rpb25faW50ZXJfbXVuaWNpcGFsaXR5PUpBQ0tTT05WSUxMRSxpbnRlcnNlY3Rpb25faW50ZXJfdHlwZT1CTFZELGludGVyc2VjdGlvbl9pbnRlcl9vcmllbnRhdGlvbj0="},{"value":"aSRpbnRlcnNlY3Rpb25fc3RyZWV0X25hbWU9UEFSSyxpbnRlcnNlY3Rpb25fc3RyZWV0X211bmljaXBhbGl0eT1KQUNLU09OVklMTEUsaW50ZXJzZWN0aW9uX3N0cmVldF90eXBlPVNULGludGVyc2VjdGlvbl9zdHJlZXRfb3JpZW50YXRpb249LGludGVyc2VjdGlvbl9pbnRlcl9uYW1lPU9SVEVHQSxpbnRlcnNlY3Rpb25faW50ZXJfbXVuaWNpcGFsaXR5PUpBQ0tTT05WSUxMRSxpbnRlcnNlY3Rpb25faW50ZXJfdHlwZT1CUkcsaW50ZXJzZWN0aW9uX2ludGVyX29yaWVudGF0aW9uPQ=="},{"value":"aSRpbnRlcnNlY3Rpb25fc3RyZWV0X25hbWU9UEFSSyxpbnRlcnNlY3Rpb25fc3RyZWV0X211bmljaXBhbGl0eT1KQUNLU09OVklMTEUsaW50ZXJzZWN0aW9uX3N0cmVldF90eXBlPVNULGludGVyc2VjdGlvbl9zdHJlZXRfb3JpZW50YXRpb249LGludGVyc2VjdGlvbl9pbnRlcl9uYW1lPVNSLTE1LGludGVyc2VjdGlvbl9pbn |
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
# Generated by iptables-save v1.4.20 on Tue Jun 3 17:10:17 2014 | |
*mangle | |
:PREROUTING ACCEPT [859:415004] | |
:INPUT ACCEPT [799:411017] | |
:FORWARD ACCEPT [60:3987] | |
:OUTPUT ACCEPT [743:81800] | |
:POSTROUTING ACCEPT [803:85787] | |
COMMIT | |
# Completed on Tue Jun 3 17:10:17 2014 | |
# Generated by iptables-save v1.4.20 on Tue Jun 3 17:10:17 2014 |
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
{ | |
{I have|I’ve} been {surfing|browsing} online more than {three|3|2|4} hours today, | |
yet I never found any interesting article like yours. | |
{It’s|It is} pretty worth enough for me. {In my opinion|Personally|In my view}, | |
if all {webmasters|site owners|website owners|web owners} and bloggers made good content as | |
you did, the {internet|net|web} will be {much more|a lot more} useful than ever before.| | |
I {couldn’t|could not} {resist|refrain from} commenting. | |
{Very well|Perfectly|Well|Exceptionally well} written!| | |
{I will|I’ll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch} your {rss|rss feed} |
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 praw | |
r = Reddit(user_agent = 'Test app by /u/zak with PRAW') | |
r.login(username=username, password=password) | |
messages = r.get_inbox() | |
with open('inbox.txt', 'rw') as outfile: | |
while message = messages.next(): | |
outfile.write("Author: %s\n" % message.author.name) | |
outfile.write("Subject: %s\n" % message.subject) |
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 [clojure.set]) | |
(defn make-doors [] | |
(rand-nth [[true false false] | |
[false true false] | |
[false false true]])) | |
(defn reveal-door [choice doors] | |
(let [choices (filter #(not (= choice %)) [0 1 2])] | |
(rand-nth (filter #(not (doors %)) choices)))) |
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
def build_conditions | |
conditions = [] | |
def condition(cond, &f) | |
if block_given? | |
conditions.concat yield(cond) | |
else | |
conditions.concat lambda {|c| {c => params{c}}}.call | |
end | |
end | |
condition("address") do |addr| |
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
(defn zpmap [f coll] | |
(apply concat | |
(pmap #(doall (map f %)) | |
(partition-all (Math/ceil (/ (count coll) | |
(float (+ 2 (.availableProcessors | |
(Runtime/getRuntime)))))) | |
coll)))) | |
; This is intended for a fast f and large coll, where pmap performs poorly. | |
; It provides a nearly 2x speedup over map on dual-core machines I've tried it on; |
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
(use 'clojure.contrib.seq-utils) | |
(defn npmap [n f coll] | |
(apply concat | |
(pmap #(doall (map f %)) | |
(partition-all (Math/ceil (/ (count coll) | |
(float n))) | |
coll)))) | |
(defn fac |
OlderNewer