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
| atom.workspace.getActiveTextEditor().getGrammar().scopeName |
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 | |
| namespace App\Providers; | |
| use Illuminate\Support\ServiceProvider; | |
| use Schema; | |
| class AppServiceProvider extends ServiceProvider | |
| { |
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 once(fn, context) { | |
| var result; | |
| return function() { | |
| if(fn) { | |
| result = fn.apply(context || this, arguments); | |
| fn = null; | |
| } | |
| return result; |
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
| web: vendor/bin/heroku-php-apache2 public/ |
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
| web: vendor/bin/heroku-php-nginx public/ |
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
| #!/bin/bash | |
| # Change directory to where you want to create your project. | |
| # Composer's create-project command creates a project with | |
| # a particular vendor package as the base into a provided directory | |
| # You can change the project variable to the | |
| # preferred folder name for your project | |
| export project="project-name" | |
| composer create-project drupal/drupal $project |
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
| /** | |
| * Selects the end of the text in an element. Useful for contenteditable elements. | |
| * @param {HTMLElement} target | |
| * @return {void} | |
| * | |
| * note: This function does not support browsers < IE9 | |
| */ | |
| export default (target) => { | |
| const range = document.createRange(); | |
| range.selectNodeContents(target); |
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
| name: Fluffiness | |
| type: theme | |
| description: 'A cuddly theme that offers extra fluffiness.' | |
| core: 8.x | |
| libraries: | |
| - fluffiness/global-styling | |
| base theme: classy | |
| regions: | |
| header: Header | |
| content: Content |
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
| SELECT SUBSTRING_INDEX("first_middle_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
| with recursive co (id, parent_id, body) as | |
| (select c.id, c.parent_id, c.body | |
| from comments c | |
| where c.id = 1 | |
| union all | |
| select c.id, c.parent_id, c.body | |
| from co | |
| join comments c | |
| on c.parent_id = co.id) | |
| select * from co; |
OlderNewer