Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| <?php | |
| /** | |
| * A simple class to read variable byte length binary data. | |
| * This is basically is a better replacement for unpack() function | |
| * which creates a very large associative array. | |
| * | |
| * @author Shubham Jain <[email protected]> | |
| * @example https://github.com/shubhamjain/PHP-ID3 | |
| * @license MIT License |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| /** | |
| * This function takes milliseconds as input and converts it into "D H M S ms" format. | |
| * | |
| * @author Shubham Jain <[email protected]> | |
| * @license MIT License | |
| */ | |
| function timeFormat( miliseconds ) | |
| { | |
| formatArr = { | |
| "d": 24 * 60 * 60 * 1000, |
| """Module to use VLC HTTP interface | |
| @author Shubham Jain <[email protected]> | |
| @license MIT License | |
| VLC provides an HTTP interface (by default disabled) at 127.0.0.1:8080. | |
| I have written some basic functions to work on the interface. | |
| Example: |
| { | |
| "AN":"Andaman and Nicobar Islands", | |
| "AP":"Andhra Pradesh", | |
| "AR":"Arunachal Pradesh", | |
| "AS":"Assam", | |
| "BR":"Bihar", | |
| "CG":"Chandigarh", | |
| "CH":"Chhattisgarh", | |
| "DN":"Dadra and Nagar Haveli", |
| { | |
| "AP":[ | |
| "Adilabad", | |
| "Anantapur", | |
| "Chittoor", | |
| "Kakinada", | |
| "Guntur", | |
| "Hyderabad", | |
| "Karimnagar", | |
| "Khammam", |
| function addUp(a, b, c) | |
| { | |
| catArr = b.concat(c); | |
| for(i = 0; i < catArr.length ; i++) | |
| a[i] += catArr[i]; | |
| return a; | |
| } |
| /** | |
| * @customfunction | |
| */ | |
| function ISPRIME(number) { | |
| for (var i = 2; i <= Math.sqrt (number); i++) { | |
| if(number % i === 0) { | |
| return false; | |
| } | |
| } | |