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
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 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 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 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 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 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 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 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 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 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