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 httplib2 | |
import time | |
import os.path | |
username = "admin" | |
password = "password" | |
ip = "192.168.0.14" | |
mac = "" | |
url = "http://{}/config/sdcard_list.cgi?type=video&page=1&pagesize=999&path=/".format(ip) |
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
/* | |
* KineticJS JavaScript Framework vdev | |
* http://www.kineticjs.com/ | |
* Copyright 2013, Eric Rowell | |
* Licensed under the MIT or GPL Version 2 licenses. | |
* Date: 2014-05-10 | |
* | |
* Copyright (C) 2011 - 2013 by Eric Rowell | |
* |
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
<?php | |
const ARRAY_LENGTH = 9999; // Length of our test array | |
const ITERATIONS = 9999; // Number of searches we will do | |
$array = array(); | |
for ($i = 0; $i < ARRAY_LENGTH; $i++) | |
{ | |
$array[] = isset($array[ $i - 1 ]) ? $array[ $i - 1 ] + rand(1, 25) : rand(1, 25); |