Made with css animations
A Pen by Ludwig Friborg on CodePen.
Made with css animations
A Pen by Ludwig Friborg on CodePen.
| """ | |
| A wrapper for Intranet2's single sign-on system. | |
| Here's a brief overview of how Iodine SSO works: | |
| - you make a request token (with generate_token) | |
| - you redirect the user to a URL containing that request token | |
| - when the user allows access, they are redirected back to your application | |
| with an access token in the "sso" parameter | |
| - you verify the access token (with check_access_token_validity) | |
| - if you need to, you can start a session to access the API and such |
| <meta property="gh:repo" content="tcyrus/github-hacktoberfest"> |
| local event = require('event') | |
| local net = require('internet') | |
| local myEventHandlers = {} | |
| local running = true | |
| local con = net.open('192.168.1.110', 5577) | |
| function myEventHandlers.key_up(address, char, code, playerName) | |
| if (char == 'q') then |
| import csv | |
| import urllib.request | |
| with urllib.request.urlopen('http://weather.unisys.com/hurricane/atlantic/tracks.atl') as response: | |
| fileA, fileB, fileC = open('typeA.csv', 'wt'), open('typeB.csv', 'wt'), open('typeC.csv', 'wt') | |
| csvA, csvB, csvC = csv.writer(fileA), csv.writer(fileB), csv.writer(fileC) | |
| csvA.writerow(['Card Number', 'Date', 'Days', 'Storm Number', 'Total Storms', 'Name', 'US Hit', 'Hi US Category']) | |
| csvB.writerow(['Card Number', 'Date', | |
| 'Stage - 00Z', 'Latitude - 00Z', 'Longitude - 00Z', 'Wind - 00Z', 'Press - 00Z', | |
| 'Stage - 06Z', 'Latitude - 06Z', 'Longitude - 06Z', 'Wind - 06Z', 'Press - 06Z', |
| """ | |
| An example of Ion's new OAuth | |
| For more information see http://tjcsl.github.io/ion/developing/oauth | |
| """ | |
| import os | |
| import json | |
| from requests_oauthlib import OAuth2Session | |
| CLIENT_ID = 'XXX' |
| <?php | |
| class Rhythm { | |
| var $length, $duration, $_prevTap, $_curTap, $_taps, $_weight; | |
| function __construct($length = 0, $duration = 0, $_taps = array(), $_weight = 1) { | |
| $this->length = $length; | |
| $this->duration = $duration; | |
| $this->_taps = $_taps; | |
| $this->_weight = $_weight; | |
| } | |
| } |