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
private void logAllValuesInCursor(Cursor cursor) { | |
if (cursor.moveToFirst()) { | |
do { | |
logAllValuesInCurrentCursor(cursor); | |
} while (cursor.moveToNext()); | |
} else { | |
Log.e("test_file", "cursor is empty"); | |
} | |
} |
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
[alias] | |
make-master = !git checkout master && cp -a _site/. . | |
commit-develop-and-master = !git commit $1 \"$2\" && git make-master && git add . && git commit $1 \"$2\" | |
push-origin-all-checkout-develop = !git push origin --all && git checkout develop |
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 java.math.BigInteger; | |
public class Hanoi { | |
private static final BigInteger ONE = new BigInteger("1"); | |
private static BigInteger DISK_MOVE_COUNTER = new BigInteger("0"); | |
private static int STACK_COUNT = 0; | |
private static int CURRENT_BIGGEST_DISK = 0; | |
public static void main(String[] args) { |
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
#include <stdio.h> | |
#include <stdlib.h> | |
int sum (int n) { | |
if (n <= 0) | |
return 0; | |
else | |
return n + sum(n - 1); | |
} |
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
Space - Ascii 32 | |
[ | |
00000000, | |
00000000, | |
00000000, | |
00000000, | |
00000000, | |
00000000, | |
00000000, | |
00000000 |
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
git config --global alias.lg "log --all --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
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
/** | |
* CAUTION! | |
* Copy board before run. | |
* Lists start at 0. | |
*/ | |
function deleteCardsInList(listNumber) { | |
var list = document.getElementsByClassName("list-cards")[listNumber]; | |
var a = list.getElementsByTagName('a'); | |
var aLength = a.length; |
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
0x05E7bE3755f987Caed5387487B4Cc5CD23102108 |
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
from tensorflow.examples.tutorials.mnist import input_data | |
mnist = input_data.read_data_sets('MNIST_data', one_hot=True) | |
import tensorflow as tf | |
sess = tf.InteractiveSession() | |
x = tf.placeholder(tf.float32, shape=[None, 784]) | |
y_ = tf.placeholder(tf.float32, shape=[None, 10]) | |
W = tf.Variable(tf.zeros([784,10])) | |
b = tf.Variable(tf.zeros([10])) | |
sess.run(tf.global_variables_initializer()) |
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 json | |
import sys | |
# λλ νμ΄ν°μ μ°Έκ°νκΈ° μν΄μλ μμ΄μ νΈλ₯Ό λ§λ€μ΄μ μ μΆν΄ μ£Όμ μΌ ν©λλ€. | |
# μμ΄μ νΈλ μ¬μ©μκ° μμ±νλ μΈκ³΅μ§λ₯ μ½λλ‘μ, μ£Όμ΄μ§λ νμ¬ κ²μ μνλ₯Ό λ°νμΌλ‘ | |
# μ΄λ€ μ‘μ μ μ·¨ν μ§λ₯Ό κ²°μ νλ μν μ ν©λλ€. | |
# | |
# μ‘μ μ€λͺ | |
# - idle - μ무κ²λ νμ§ μμ΅λλ€. | |
# - forward - μμΌλ‘ μμ§μ λλ€. μλκ° λ°λ‘ μμ μμ κ²½μ° λ μμ§μ΄μ§ μμ΅λλ€. |
OlderNewer