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
| //Include jQuery | |
| <meta id="Viewport" name="viewport" width="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> | |
| <script type="text/javascript"> | |
| $(function(){ | |
| if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) { | |
| var ww = ( $(window).width() < window.screen.width ) ? $(window).width() : window.screen.width; //get proper width | |
| var mw = 480; // min width of site | |
| var ratio = ww / mw; //calculate ratio | |
| if( ww < mw){ //smaller than minimum size |
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
| #define BEAT_TIME 300 | |
| #define OUT_SPEAKER 12 | |
| #define IN_MEASURE 0 | |
| int measure_val = 0; | |
| void setup() { | |
| Serial.begin(9600); | |
| Serial.println("Start Sensor"); | |
| } |
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
| # coding: utf-8 | |
| from markdown import markdown as md | |
| from lxml.html.clean import clean_html | |
| def markdown(raw): | |
| """MarkdownからHTMLに変換 | |
| """ | |
| html = md(raw, extensions=['gfm']) | |
| html = clean_html(html) |
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
| from django.shortcuts import render | |
| from django.http import HttpResponseRedirect, HttpResponse | |
| # YouTube Data API | |
| from oauth2client.client import OAuth2WebServerFlow | |
| import httplib2 | |
| from apiclient.discovery import build | |
| CLIENT_ID = 'xxxxx' |
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
| from django.views.decorators.csrf import ensure_csrf_cookie | |
| @ensure_csrf_cookie | |
| def view(request): | |
| pass |
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
| from django.shortcuts import render | |
| from django.http import HttpResponseRedirect, HttpResponse | |
| from oauth2client.client import OAuth2WebServerFlow | |
| import httplib2 | |
| from apiclient.discovery import build | |
| CLIENT_ID = 'xxxxx' | |
| CLIENT_SECRET = 'xxxxx' |
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 grequests | |
| urls = [ | |
| 'http://www.heroku.com', | |
| 'http://python-tablib.org', | |
| 'http://httpbin.org', | |
| 'http://python-requests.org', | |
| 'http://kennethreitz.com' | |
| ] |
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
| heroku addons:add sendgrid |
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
| { | |
| /* Keybindings for emacs emulation. Compiled by Jacob Rus. | |
| * | |
| * To use: copy this file to ~/Library/KeyBindings/ | |
| * after that any Cocoa applications you launch will inherit these bindings | |
| * | |
| * This is a pretty good set, especially considering that many emacs bindings | |
| * such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and | |
| * perhaps a few more, are already built into the system. | |
| * |
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 titleLabel = cell.viewWithTag(1) as UILabel |