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 SimpleCV | |
| import time | |
| c = SimpleCV.Camera(1) | |
| js = SimpleCV.JpegStreamer() | |
| while(1): | |
| img = c.getImage() | |
| img = img.smooth() | |
| img = img.dilate() |
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
| <?php | |
| //This little PHP script is the most elegant way | |
| //I could find the list directories and | |
| //files with PHP and sort by date | |
| //thanks to StackOverflow | |
| $files = array(); | |
| $dir = new DirectoryIterator('.'); | |
| foreach ($dir as $fileinfo) { |
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 os | |
| import urllib2 | |
| import math | |
| def downloadChunks(url): | |
| """Helper to download large files | |
| the only arg is a url | |
| this file will go to a temp directory | |
| the file will also be downloaded | |
| in chunks and print out how much remains |
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
| class Update(Resource): | |
| def override_urls(self): | |
| urls = [url(r"^(?P<resource_name>%s)%s$" % (self._meta.resource_name, trailing_slash()), | |
| self.wrap_view('dispatch_update'), name="api_dispatch_update") | |
| ] | |
| return urls | |
| def dispatch_update(self, request, **kwargs): |
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
| var request = require('request') | |
| var jsdom = require('jsdom') | |
| var _ = require('underscore.string') | |
| request({ uri:'http://www.hos.com/php/printProgram2.php?program=0927' }, function (error, response, body) { | |
| if (error) { | |
| console.log('Error downloading page') | |
| process.exit(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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Bootstrap, from Twitter</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta name="description" content=""> | |
| <meta name="author" content=""> | |
| <link href="../assets/css/bootstrap.css" rel="stylesheet"> | |
| <style type="text/css"> |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Bootstrap, from Twitter</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta name="description" content=""> | |
| <meta name="author" content=""> | |
| <link href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" rel="stylesheet"> | |
| <style type="text/css"> |
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
| var request = require('request') | |
| var jsdom = require('jsdom') | |
| var _ = require('underscore.string') | |
| request({ uri:'http://www.hos.com/php/printProgram2.php?program=0927' }, function (error, response, body) { | |
| if (error) { | |
| console.log('Error downloading page') | |
| process.exit(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
| """PyObjC keylogger for Python | |
| by ljos https://github.com/ljos | |
| """ | |
| from Cocoa import * | |
| from Foundation import * | |
| from PyObjCTools import AppHelper | |
| class AppDelegate(NSObject): | |
| def applicationDidFinishLaunching_(self, aNotification): |
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
| /*! | |
| * NETEYE Activity Indicator jQuery Plugin | |
| * | |
| * Copyright (c) 2010 NETEYE GmbH | |
| * Licensed under the MIT license | |
| * | |
| * Author: Felix Gnass [fgnass at neteye dot de] | |
| * Version: @{VERSION} | |
| */ | |