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
| # I'm using git as an alias for hub | |
| # wait for the CI to finish and print the result | |
| wait_for_ci() { | |
| while [ "$(git ci-status)" == "pending" ]; do sleep 4; done; git ci-status | |
| } | |
| # or wait for the CI but play some music instead | |
| wait_for_ci() { | |
| while [ "$(git ci-status)" == "pending" ]; do sleep 4; done; radio 3 |
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! airline#extensions#tabline#formatters#folder#format(bufnr, buffers) | |
| let name = bufname(a:bufnr) | |
| let folder = fnamemodify(name, ':p:h:t') | |
| let file = fnamemodify(name, ':t') | |
| if fnamemodify(name, ':t:r') == "index" | |
| return folder . '/' . file | |
| else | |
| return airline#extensions#tabline#formatters#default#format(a:bufnr, a:buffers) | |
| endif |
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
| /* | |
| * Request: Javascript | |
| * | |
| * I would like to learn some basic concepts in JavaScript. Just as example, making a stopWatch and creating a racing game with few players which will have start and stop time for each player and choose one winner from them using the stopWatch object. | |
| */ | |
| // Design and Code a StopWatch | |
| // Sample Use Case: | |
| // var sw = new StopWatch(); | |
| // sw.start().stop().start().log(); |
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
| @charset "UTF-8";@font-face{font-family:Ionicons;src:url(../lib/ionic/fonts/ionicons.eot?v=2.0.1);src:url(../lib/ionic/fonts/ionicons.eot?v=2.0.1#iefix) format("embedded-opentype"),url(../lib/ionic/fonts/ionicons.ttf?v=2.0.1) format("truetype"),url(../lib/ionic/fonts/ionicons.woff?v=2.0.1) format("woff"),url(../lib/ionic/fonts/ionicons.svg?v=2.0.1#Ionicons) format("svg");font-weight:400;font-style:normal}.ion,.ion-alert-circled:before,.ion-alert:before,.ion-android-add-circle:before,.ion-android-add:before,.ion-android-alarm-clock:before,.ion-android-alert:before,.ion-android-apps:before,.ion-android-archive:before,.ion-android-arrow-back:before,.ion-android-arrow-down:before,.ion-android-arrow-dropdown-circle:before,.ion-android-arrow-dropdown:before,.ion-android-arrow-dropleft-circle:before,.ion-android-arrow-dropleft:before,.ion-android-arrow-dropright-circle:before,.ion-android-arrow-dropright:before,.ion-android-arrow-dropup-circle:before,.ion-android-arrow-dropup:before,.ion-android-arrow-forward:before |
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
| $Theme-font-sizes: ( | |
| mobile: ( | |
| subvisual: ( | |
| small: ( | |
| font-size: 16px, | |
| line-height: 28px | |
| ), | |
| base: ( | |
| font-size: 24px, |
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
| *, *:before, *:after { | |
| box-sizing: border-box; | |
| vertical-align: top; | |
| padding: 0; | |
| margin: 0; | |
| -webkit-font-smoothing: antialiased; | |
| // suppressing the tap from users highlight | |
| -webkit-tap-highlight-color: rgba(0,0,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
| <template name="Layout"> | |
| <div class="Layout"> | |
| <div class="Layout-sidebar">{{> Sidebar}}</div> | |
| <div class="Layout-content">{{> Template.contentBlock}}</div> | |
| </div> | |
| </template> |
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
Show hidden characters
| { | |
| "node": true, | |
| "esnext": true, | |
| "bitwise": true, | |
| "camelcase": true, | |
| "curly": false, | |
| "eqeqeq": true, | |
| "immed": true, | |
| "indent": 2, | |
| "latedef": false, |
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
| <!-- OPTION 1 --> | |
| <a href="#" | |
| class="dropdown-toggle" | |
| data-toggle="dropdown" | |
| role="button" | |
| aria-expanded="false"> | |
| Admin <span class="caret"></span> | |
| </a> | |
| <!-- OPTION 2 --> |
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/sh | |
| current=`git branch | sed -n '\/* /s///p'` | |
| destiny=${1:-master} | |
| # 1. Update destiny | |
| git fetch | |
| git checkout $destiny | |
| [[ $? == 0 ]] || exit "failed to switch to $destiny" | |
| git rebase |
NewerOlder