Original by chriscook8 from esp8266.com I just modified to use ESP8266WebServer library for easy to handle the http request.
This is sample code not yet complete.
- when Wifi connected need to close the softAP.
| #!/bin/bash | |
| # STATUS A/O 2016 02 14: tested, works | |
| # based on https://barclaysapps.wordpress.com/2014/07/06/openalpr-install-for-rpi-and-udoo-and-tre-and-yun/ , | |
| # http://lukagabric.com/raspberry-pi-license-plate-recognition/, and updated for new packages. | |
| # there are other random notes and googled pages that also informed this tutorial whihc may not be specifically referenced. | |
| #This is not optimized for space or whatever, but does work. well, not as of 2016 01 03 but working to fix that) | |
| # discussion is at https://groups.google.com/forum/#!topic/openalpr/-vckIsPe618: please contribute if you can, and ask questions if you # # have them | |
| # thanks to Timis for tips and hints... |
| wifi.setmode(wifi.STATION) | |
| wifi.sta.config("SSID","password") | |
| -- Send POST when buttons A or B pressed | |
| PIN_BUTTON_A = 3 -- GPIO0 | |
| PIN_BUTTON_B = 4 -- GPIO1 | |
| TIME_ALARM = 25 -- 0.025 second, 40 Hz | |
| gpio.mode(PIN_BUTTON_A, gpio.INPUT, gpio.PULLUP) |
| { | |
| "name": "parseDuration", | |
| "version": "0.0.1", | |
| "main": "./parseDuration.es5.js" | |
| } |
| // ESP8266 with 20x4 i2c LCD | |
| // Compatible with the Arduino IDE 1.6.4 | |
| // Library https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library | |
| // Bavensky :3 | |
| #include <Wire.h> | |
| #include <LiquidCrystal_I2C.h> | |
| LiquidCrystal_I2C lcd(0x20,20,4); | |
| console.log('Loading event'); | |
| // Twilio Credentials | |
| var accountSid = ''; | |
| var authToken = ''; | |
| var fromNumber = ''; | |
| var https = require('https'); | |
| var queryString = require('querystring'); |
In this tutorial we are going to build a Twitter clone using Django and GetStream.io, a hosted API for newsfeed development.
We will show you how easy is to power your newsfeeds with GetStream.io. For brevity we leave out some basic Django-specific code and recommend you refer you to the Github project for the complete runnable source code. At the end of this tutorial we will have a Django app with a profile feed, a timeline feed, support for following users, hashtags and mentions.
I assume that you are familiar with Django. If you're new to Django the [official tutorial] (https://docs.djangoproject.com/en/2.0/intro/) explains it very well.
| //uses LINQPad | |
| void Main() | |
| { | |
| List<dimDate> dimDates = genDimDate( | |
| DateTime.Parse("1/1/2012") | |
| , DateTime.Parse("12/31/2017") | |
| ); | |
| dimDates.Dump(); | |
| } |
| // Nokia 5110 control code for the imp | |
| // Adapted by Tony Smith from a variety of sources: | |
| // http://playground.arduino.cc/Code/PCD8544 | |
| // http://www.microsyl.com/index.php/2010/03/24/nokia-lcd-library/ | |
| // Assign the control pins to global variables | |
| PIN_RST <- hardware.pin9; | |
| PIN_CE <- hardware.pin8; | |
| PIN_DC <- hardware.pin7; |
| @interface YourViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> { | |
| UIImageOrientation scrollOrientation; | |
| CGPoint lastPos; | |
| } | |
| - (void) tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { | |
| if (tableView.isDragging) { | |
| UIView *myView = cell.contentView; | |
| CALayer *layer = myView.layer; | |
| CATransform3D rotationAndPerspectiveTransform = CATransform3DIdentity; |