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
| 0 info it worked if it ends with ok | |
| 1 verbose cli [ '/home/me/.nvm/versions/node/v6.14.1/bin/node', | |
| 1 verbose cli '/home/me/.nvm/versions/node/v6.14.1/bin/npm', | |
| 1 verbose cli 'i', | |
| 1 verbose cli '--save', | |
| 1 verbose cli 'clipboard' ] | |
| 2 info using npm@3.10.10 | |
| 3 info using node@v6.14.1 | |
| 4 silly loadCurrentTree Starting | |
| 5 silly install loadCurrentTree |
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
| module Main where | |
| import Control.Monad.Eff | |
| import Data.Maybe | |
| import Debug.Trace | |
| foreign import data ThreeStore :: * -> * -> * -> * | |
| data Chombo (eff :: # !) | |
| foreign import threeStore """ |
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> | |
| <title>hi guys</title> | |
| </head> | |
| <body> | |
| <h1>hello</h1> | |
| </body> | |
| </html> |
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
| # Determines if an application exists. | |
| def app_exists?(app_name) | |
| begin | |
| false == capture("which #{app_name}").strip.empty? | |
| rescue Exception => e | |
| false | |
| end | |
| end | |
| # Does something in Drush. |
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
| <div style="position: absolute;"> | |
| <?php | |
| function circle($radius = 10, $center = array(0, 0), $points = 20) { | |
| $point_array = array(); | |
| for ($i = 0; $i < $points; $i++) { | |
| $theta = 2 * pi() * ($i / $points); | |
| $x = $radius * sin($theta) + $center[0]; | |
| $y = $radius * cos($theta) + $center[1]; | |
| array_push($point_array, array($x, $y)); |
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
| $template_path = isset($registry[$theme]['path']) ? $registry[$theme]['path'] . '/' : './'; | |
| $template_theme_path = isset($registry[$theme]['theme path']) ? $registry[$theme]['theme path'] . '/templates/' : './'; | |
| if (file_exists($template_path . $template)) { | |
| $hint = t('File found in folder @template-path', array('@template-path' => $template_path)); | |
| $template = '<strong title="'. $hint .'">' . $template . '</strong>'; | |
| } | |
| elseif (file_exists($template_theme_path . $template)) { | |
| $hint = t('File found in folder @template-path', array('@template-path' => $template_theme_path)); | |
| $template = '<strong title="'. $hint .'">' . $template . '</strong>'; | |
| } |
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
| public function defaultScope() | |
| { | |
| return array( | |
| 'condition'=>'deleted=0', | |
| ); | |
| } | |
| public function defaultScope() | |
| { |
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
| var functions = [ | |
| function(){ document.write('1'); }, | |
| function(){ document.write('2'); }, | |
| function(){ document.write('3'); }, | |
| ], finished = []; | |
| while (finished.length < functions.length) { | |
| var current = Math.floor(Math.random() * functions.length); | |
| if (finished.indexOf(current) >= 0) continue; |
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
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule ^hi-there hello.html [L] | |
| </IfModule> |
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 | |
| # git-merge-push thatbranch | |
| THISBRANCH=$(git rev-parse --abbrev-ref HEAD) | |
| THATBRANCH=$1 | |
| git checkout $THATBRANCH && git merge $THISBRANCH && git push origin $THATBRANCH && git checkout $THISBRANCH |
NewerOlder