Create a new project
$ cordova create [path] [id] [name] #eg. create . sub.dom.top ExampleAdd platform
$ cordova platform add iosCreate a new project
$ cordova create [path] [id] [name] #eg. create . sub.dom.top ExampleAdd platform
$ cordova platform add ios| # PHP | |
| alias art="php artisan" | |
| # Git | |
| alias commitmsg='curl -s http://whatthecommit.com/index.txt' | |
| # Shortcuts | |
| alias v="cd /vagrant" | |
| alias cl='clear' |
My mysql_config is in /usr/local/mysql/bin/ so add it to the PATH:
$ PATH="$PATH:/usr/local/mysql/bin/"
And make sure clang don't complain about unrecognized flags:
$ ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install MySQL-python
| import os | |
| import datetime | |
| import pytz | |
| from flask import Flask | |
| from astral import Astral | |
| app = Flask(__name__) | |
| __TELLSTICK_PATH__ = '/usr/bin/tdtool' | |
| __WINDOW_ID__ = ['1', '2', '3'] |
| import urllib | |
| import xbmc | |
| __HOST__ = '192.168.0.15' | |
| __PORT__ = '8000' | |
| class MyPlayer(xbmc.Player): | |
| __is_playing = False | |
| __url = 'http://' + __HOST__ + ':' + __PORT__ |
| <?php | |
| $username = ''; | |
| $password = ''; | |
| $points = ''; | |
| $login_url = 'https://www3.student.liu.se/portal/login'; | |
| $redirect = 1; | |
| $redirect_url = '/portal/sv/portal/'; | |
| $time = 0; | |
| $login_para = ''; |