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
{ "photos": { "page": 1, "pages": "3207", "perpage": 100, "total": "320662", | |
"photo": [ | |
{ "id": "32547078274", "owner": "148578535@N03", "secret": "dcc9f61d9f", "server": "3855", "farm": 4, "title": "", "ispublic": 1, "isfriend": 0, "isfamily": 0 }, | |
{ "id": "33007015650", "owner": "148578535@N03", "secret": "10a9056f37", "server": "660", "farm": 1, "title": "", "ispublic": 1, "isfriend": 0, "isfamily": 0 }, | |
{ "id": "33262233881", "owner": "65702056@N02", "secret": "5a583dd624", "server": "3895", "farm": 4, "title": "Bird", "ispublic": 1, "isfriend": 0, "isfamily": 0 }, | |
{ "id": "32547078094", "owner": "65702056@N02", "secret": "e751d10e40", "server": "3948", "farm": 4, "title": "Bird", "ispublic": 1, "isfriend": 0, "isfamily": 0 }, | |
{ "id": "32575826763", "owner": "146900320@N07", "secret": "259be22cf4", "server": "770", "farm": 1, "title": "", "ispublic": 1, "isfriend": 0, "isfamily": 0 }, | |
{ "id": "32547077724", "owner": "148578535@N03", "secret": "2e1b3ba80c", "server" |
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
class Dialog private constructor( | |
val title: String, | |
val message: String, | |
val titleColor: Color, | |
val bodyColor: Color, | |
val icon: Image, | |
val onClose: () -> Unit) { | |
fun show() { | |
//... |
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 extensions | |
import java.text.SimpleDateFormat | |
import java.util.* | |
private val calendar: Calendar by lazy { | |
Calendar.getInstance() | |
} | |
fun Date.isSunday(): Boolean { |
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 peakrobots.ilkin; | |
import robocode.AdvancedRobot; | |
import java.awt.event.KeyEvent; | |
public class TankTrainer extends AdvancedRobot { | |
enum State { | |
STEADY, AHEAD, LEFT, RIGHT |
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
using UnityEngine; | |
using UnityEditor; | |
using System.Text; | |
[InitializeOnLoad] | |
public class CustomHierarchyView { | |
private static StringBuilder sb = new StringBuilder (); | |
static CustomHierarchyView() { |
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
➜ ~ adb logcat -v time -s Unity | |
--------- beginning of main | |
--------- beginning of system | |
--------- beginning of crash | |
05-15 13:24:38.217 W/Unity ( 2407): Failed to get permission info for com.google.android.c2dm.permission.RECEIVE, manifest likely missing custom permission declaration | |
05-15 13:24:38.217 W/Unity ( 2407): Permission com.google.android.c2dm.permission.RECEIVE ignored | |
05-15 13:24:38.220 W/Unity ( 2407): Failed to get permission info for com.android.vending.BILLING, manifest likely missing custom permission declaration | |
05-15 13:24:38.220 W/Unity ( 2407): Permission com.android.vending.BILLING ignored | |
05-15 13:24:38.450 D/Unity ( 2407): GL_EXT_debug_marker GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_depth24 GL_OES_depth32 GL_OES_element_index_uint GL_OES_texture_float GL_OES_texture_float_linear GL_OES_compressed_paletted_texture GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_packed_depth_stencil GL_OES_ve |
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/python | |
# | |
# Usage: | |
# adb logcat -v time | python logcat_unity.py | |
import sys | |
import re | |
IGNORED_LINES=["(Filename:"] | |
LOG_TAG="Unity" |
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
using UnityEngine; | |
using System.Collections; | |
[RequireComponent(typeof (MeshFilter))] | |
[RequireComponent(typeof (MeshRenderer))] | |
public class UVMapping : MonoBehaviour { | |
void Start () { | |
float size = 1f; | |
Vector3[] vertices = { |
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
using UnityEngine; | |
using System.Collections.Generic; | |
[RequireComponent(typeof (MeshFilter))] | |
[RequireComponent(typeof (MeshRenderer))] | |
public class MeshGenerator : MonoBehaviour { | |
void Start () { | |
CreateCube (); | |
} |
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 codekata.observer; | |
import java.lang.ref.WeakReference; | |
import java.util.LinkedList; | |
import java.util.List; | |
public class CountDownTimer { | |
private static long ONE_SECOND = 1000L; | |
private long countDownMillis; | |
private long elapsedTimeSinceLastTick; |
NewerOlder