Follow the steps below to setup a local development environment:
Recommended to download latest XQuartz
| /** | |
| * Retrieves all the rows in the active spreadsheet that contain data and logs the | |
| * values for each row. | |
| * For more information on using the Spreadsheet API, see | |
| * https://developers.google.com/apps-script/service_spreadsheet | |
| */ | |
| function readRows() { | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var rows = sheet.getDataRange(); | |
| var numRows = rows.getNumRows(); |
Follow the steps below to setup a local development environment:
Recommended to download latest XQuartz
| <?php | |
| namespace libs\mysql; | |
| class PDODbImporter{ | |
| private static $keywords = array( | |
| 'ALTER', 'CREATE', 'DELETE', 'DROP', 'INSERT', | |
| 'REPLACE', 'SELECT', 'SET', 'TRUNCATE', 'UPDATE', 'USE', | |
| 'DELIMITER', 'END' | |
| ); |
The Laracasts PHPStorm theme.
https://www.dropbox.com/s/f4l3qc2falnvq61/laracasts_theme_updated.icls
(Add to ~/Library/Preferences/WebIde80/colors on Mac.)
| <?php | |
| use Swagger\Annotations as SWG; | |
| /** | |
| * @SWG\Swagger( | |
| * basePath="/v1", | |
| * host="api.local", | |
| * schemes={"http"}, | |
| * produces={"application/json"}, |
| <?php | |
| return Symfony\CS\Config\Config::create() | |
| ->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL) | |
| ->fixers([ | |
| 'short_array_syntax', | |
| 'ordered_use', | |
| ]) | |
| ; |
| auto_register = new Object(); | |
| auto_register.add_member = function(member_id, group_id, ignore, callback) { | |
| x = new XMLHttpRequest(); | |
| x.onreadystatechange = function() { | |
| if (x.readyState == 4) { | |
| if (x.status == 200) { | |
| if (callback) | |
| callback(member_id, group_id); | |
| console.log('success', member_id); | |
| } else |
| """ | |
| Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
| BSD License | |
| """ | |
| import numpy as np | |
| # data I/O | |
| data = open('input.txt', 'r').read() # should be simple plain text file | |
| chars = list(set(data)) | |
| data_size, vocab_size = len(data), len(chars) |
| .highlight .hll { background-color: #ffffcc } | |
| .highlight { background: #151718; color: #d4d7d6; background-color: #151718 } | |
| .highlight .c { color: #41535b; background-color: #151718 } /* Comment */ | |
| .highlight .err { color: #d4d7d6; background-color: #151718 } /* Error */ | |
| .highlight .esc { color: #d4d7d6; background-color: #151718 } /* Escape */ | |
| .highlight .g { color: #d4d7d6; background-color: #151718 } /* Generic */ | |
| .highlight .k { color: #9fca56; background-color: #151718 } /* Keyword */ | |
| .highlight .l { color: #d4d7d6; background-color: #151718 } /* Literal */ | |
| .highlight .n { color: #d4d7d6; background-color: #151718 } /* Name */ | |
| .highlight .o { color: #d4d7d6; background-color: #151718 } /* Operator */ |