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
| function doGet(){ | |
| var ss = SpreadsheetApp.openById("//key ommitted"); | |
| return exportJSON(ss); | |
| } | |
| // Exports current sheet as JSON and displays in message box. | |
| function exportJSON(ss) { | |
| var sheet = ss.getSheetByName("sessions"); | |
| var rowsData = getRowsData(sheet); | |
| var result = Utilities.jsonStringify(rowsData); |
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
| [ | |
| [ | |
| "Oleg", | |
| "Oleg", | |
| 25, | |
| { | |
| "first": 1, | |
| "last": 1 | |
| } | |
| ] |
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
| { | |
| "require": { | |
| "mfacenet/hello-world": "v1.*" | |
| } | |
| } |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Building a router</title> | |
| <script> | |
| // Put John's template engine code here... | |
| (function () { | |
| // A hash to store our routes: |
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
| This is how I managed to set up Singularitygs + Breakpoint + Compass with Gulp (for Drupal theming). | |
| Install gulp globally | |
| "sudo npm install -g gulp" | |
| Copy the following package.json to the root folder of your project. | |
| { | |
| "name": "your_project", | |
| "version": "1.0.0", |
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
| // Detailed description in a comment. | |
| // Just copy the code below. | |
| cd; | |
| curl -s https://getcomposer.org/installer | php; | |
| sudo php installer; | |
| sudo mv composer.phar /usr/local/bin/; | |
| alias composer='/usr/local/bin/composer.phar'; |
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
| First, read the instructions on how to create a Drupal Bootstrap based sub-theme at the official Drupal Bootstrap site. | |
| You can select a Bootswatch from the Bootstrap theme settings, but sometimes you don't want to rely on a third-party for your site. | |
| Here is a quick way of downloading the Bootstrap theme, creating a Bootstrap sub-theme, include a Bootswatch and compile it with less. | |
| You can adjust it to match the path to your site, copy all the lines and run them from your terminal in one go: | |
| cd /var/www/public/example_DEV/themes/; | |
| drush dl bootstrap; |
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
| <?php | |
| /** | |
| * @file | |
| * Local development override configuration feature. | |
| * | |
| * To activate this feature, copy and rename it such that its path plus | |
| * filename is 'sites/example.com/settings.local.php', where example.com | |
| * is the name of your site. Then, go to the bottom of | |
| * 'sites/example.com/settings.php' and uncomment the commented lines that |
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
| # | |
| # Apache/PHP/Drupal settings: | |
| # | |
| # Protect files and directories from prying eyes. | |
| <FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\..*|Entries.*|Repository|Root|Tag|Template|composer\.(json|lock))$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig\.save)$"> | |
| Order allow,deny | |
| </FilesMatch> | |
| # Don't show directory listings for URLs which map to a directory. |
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
| " Allow Vim-only settings even if they break vi keybindings. | |
| set nocompatible | |
| " Enable filetype detection. | |
| filetype off | |
| filetype plugin indent on | |
| " Enable syntax highlighting | |
| if &t_Co > 1 | |
| syntax enable |
NewerOlder