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
var gulp = require('gulp'), | |
path = require('path'), | |
EXPRESS_ROOT = path.join(__dirname, 'app'); | |
var startExpress = function() { | |
var server = require('./server.js'); | |
server({ | |
dir:EXPRESS_ROOT, | |
port: 9898 | |
}); |
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
// Copyright (c) 2013 Mutual Mobile (http://mutualmobile.com/) | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// | |
// The above copyright notice and this permission notice shall be included in |
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iittLLGG0000880000GGLLttii;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11LLGG88888888888888888888888888GGLL11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iiLL008888888888888888888888888888888888888800LLii;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iiLL88888888888888888888888888888888888888888888888888LLii;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;ff8888888888888888888888888888888888888888888888888888888888ff;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;;;;;;;;;;;;;;;;;;;;;;;11GG88888888888888888888888888888888888888888888888888888888888888GG11;;;;;;;;;;;;;;;;;;;;;;;; | |
;;;;;;;;;;;;;;;;;;;;;;tt8888888888888888888888888888888888888888888888888888888888888888888888tt;;;;;;;;;;;;;;;;;;;;;; | |
;;;;;;;;;;;;;;;;;;;;LL88888888888888888888888888888888888888888888888888888888888888888888888888LL;;;;;;;;;;;;;;;;;;;; | |
;;;;;;;;;;;;;;;;;;CC8888888888888888888888888888888888888888888888888888 |
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 strict'; | |
/** | |
* | |
* The BlurFilter applies a Gaussian blur to an object. | |
* The strength of the blur can be set for x- and y-axis separately (always relative to the stage). | |
* | |
* @class BlurFilter | |
* @contructor | |
*/ |
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
3 | |
2 | |
1 2 3 4 | |
5 6 7 8 | |
9 10 11 12 | |
13 14 15 16 | |
3 | |
1 2 5 4 | |
3 11 6 15 | |
9 10 7 12 |
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
public void appendLog(String text) { | |
String logFileName = "AppLog.txt"; | |
SimpleDateFormat sdf = new SimpleDateFormat("MM-dd HH:mm:ss", Locale.getDefault()); | |
String currentDateandTime = sdf.format(new Date()); | |
File logFile = new File(Environment.getExternalStorageDirectory() | |
+ "/" + logFileName); | |
if (!logFile.exists()) { | |
try { | |
logFile.createNewFile(); |
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
public static int parseColor(String colorString) { | |
if (colorString.charAt(0) == '#') { | |
// Use a long to avoid rollovers on #ffXXXXXX | |
long color = Long.parseLong(colorString.substring(1), 16); | |
if (colorString.length() == 7) { | |
// Set the alpha value | |
color |= 0x00000000ff000000; | |
} else if (colorString.length() != 9) { | |
throw new IllegalArgumentException("Unknown color"); | |
} |
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
public class DiscoveryThread implements Runnable { | |
private static String TAG = "DiscoveryThread"; | |
private DatagramSocket c; | |
pirvate static Context mContext; | |
private static int PORT = 5549; | |
@Override | |
public void run() { | |
byte[] bytes = null; | |
ByteArrayOutputStream baos = new ByteArrayOutputStream(); |
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
/* | |
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
* Version 2, December 2004 | |
* | |
* Copyright(C) 2013 You-wei Teng | |
* | |
* Everyone is permitted to copy and distribute verbatim or modified | |
* copies of this license document, and changing it is allowed as long | |
* as the name is changed. | |
* |
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
//Call with [self quickSort:0 withHigh:[scanpleFileList count]-1]; | |
-(void)quickSort:(int)low withHigh:(int)high;{ | |
int i = low,j = high; | |
int pivot = [[[scanpleFileList objectAtIndex:(low+high)/2]time]intValue]; | |
while(i <= j){ | |
while([[[scanpleFileList objectAtIndex:i]time]intValue] < pivot) i++; |
NewerOlder