Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| import sublime, sublime_plugin, os, re | |
| class FileNameComplete(sublime_plugin.EventListener): | |
| def on_query_completions(self, view, prefix, locations): | |
| completions = [] | |
| sel = view.sel()[0].a | |
| if "string" in view.syntax_name(sel): | |
| pass |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| #!/bin/sh | |
| daemon=beanstalkd | |
| executable=/usr/local/bin/$daemon | |
| port=11300 | |
| waldir=/usr/local/var/beanstalkd | |
| logfile=/usr/local/var/log/beanstalkd.log | |
| interface="127.0.0.1" | |
| params="-l $interface -p $port -b $waldir" |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| .DS_Store | |
| tmp/**/* |
| # Credit http://stackoverflow.com/a/2514279 | |
| for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ai %ar by %an" $branch | head -n 1` \\t$branch; done | sort -r |
| <?php | |
| /* | |
| Note that this does not use app icons or links in Timeline post. Some messaging is therefor lost. | |
| */ | |
| require 'fb/src/facebook.php'; | |
| $facebook = new Facebook(array( | |
| 'appId' => 'SOME_APP_ID', |
| username: vagrant | |
| password: vagrant | |
| sudo apt-get update | |
| sudo apt-get install build-essential zlib1g-dev git-core sqlite3 libsqlite3-dev | |
| sudo aptitude install mysql-server mysql-client | |
| sudo nano /etc/mysql/my.cnf |
コマンドの実行はコンソール( ctrl + ` で開ける)で以下を実行する:
view.run_command('example')