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.example.myapplication; | |
import android.content.Context; | |
import android.database.Cursor; | |
import android.net.Uri; | |
import android.support.v4.content.CursorLoader; | |
import android.support.v4.content.Loader; | |
import android.support.v4.widget.CursorAdapter; | |
import android.util.AttributeSet; | |
import android.view.LayoutInflater; |
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.example.retain; | |
import android.annotation.TargetApi; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.os.Parcelable; | |
import java.io.Serializable; | |
import java.util.HashMap; | |
import java.util.concurrent.atomic.AtomicLong; |
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
(ns org.stuff.events.main | |
(:require [neko.activity :refer [defactivity set-content-view!]] | |
[neko.debug :refer [*a]] | |
[neko.ui :refer [on-ui]] | |
[clojure.string :refer [join]] | |
[neko.find-view :refer [find-view]] | |
[neko.threading :refer [on-ui]]) | |
(:import android.widget.TextView | |
(java.util Calendar) | |
(android.app Activity) |
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.example.clojureequivalent2; | |
import android.app.DatePickerDialog; | |
import android.app.Dialog; | |
import android.os.Bundle; | |
import android.support.annotation.NonNull; | |
import android.support.v4.app.DialogFragment; | |
import android.support.v4.app.FragmentActivity; | |
import android.view.View; | |
import android.widget.Button; |
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 ( | |
"fmt" | |
"image" | |
"image/png" | |
_ "image/png" | |
"os" | |
) |
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
Subscription subscribe = orma.selectFromToDo().executeAsObservable().map(new Func1<ToDo, Integer>() { | |
@Override | |
public Integer call(ToDo toDo) { | |
Log.i(TAG, "map called"); | |
throw new RuntimeException("map error"); | |
//return 0; | |
} | |
}).subscribe(new Action1<Integer>() { | |
@Override | |
public void call(Integer toDo) { |
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
// (column1=0 OR column=1) AND (column2=3) | |
TODO_Selector a = orma.selectFromTODO().column1Eq(0).or().column1Eq(1); | |
Cursor cursor = orma.selectFromTODO() | |
.where(a).and().column2Eq(3) |
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
File->Import->General->Preferences->Import Keys Preferences |
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 gray-encode [x] | |
(bit-xor x (unsigned-bit-shift-right x 1))) | |
(defn gray-decode [x] | |
(loop [mask 0x80000000 | |
b 0] | |
(if (= mask 0) | |
b | |
(recur (unsigned-bit-shift-right mask 1) | |
(bit-or b |
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
// ==UserScript== | |
// @name scrollbar widen | |
// @namespace https://developer.android.com/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @include https://developer.android.com/* | |
// @include https://developers.google.com/* | |
// @grant GM_addStyle | |
// ==/UserScript== |
OlderNewer