By revooms
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 | |
| $hasFirstSeperator = false; | |
| $hasLastSeperator = false; | |
| $visibleButtons = 9; // odd number!!! | |
| $first = 1; | |
| $last = $p->lastPage(); | |
| $current = $p->currentPage(); | |
| // Main | |
| $half = floor($visibleButtons / 2); |
Von revooms
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
| $grid-breakpoints: ( | |
| xs: 0, | |
| sm: 600px, | |
| md: 800px, | |
| lg: 1000px, | |
| xl: 1200px ) !default; | |
| $container-max-widths: ( | |
| sm: 600px, | |
| md: 800px, |
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
| import time | |
| def timeStamped(fmt='%H:%M:%S'): | |
| return time.strftime(fmt).format() | |
| with open('../time.txt','w') as outf: | |
| outf.write(timeStamped()) |
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": "Red", | |
| "background-color": "rgb(176, 70, 50)" | |
| }, | |
| { | |
| "name": "Blue", | |
| "background-color": "rgb(0, 121, 191)" | |
| }, | |
| { |
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
| .image-va { box-sizing: content-box; width:100%; height:100%; vertical-align: middle; text-align: center; background-color:lime} | |
| .image-va img { border:0 !important; margin:0 !important; max-width: 100%; max-height: 100%; vertical-align: middle;} | |
| .image-va .helper { display: inline-block; height: 100%; vertical-align: middle;} |
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
| # https://docs.gitlab.com/ce/ci/examples/laravel_with_gitlab_and_envoy/index.html | |
| # | |
| # Usage: envoy run deploy | |
| @setup | |
| $repository = '[email protected]:<YOURREPOSITORY>.git'; | |
| $app_dir = '/var/www/<YOURAPPDIR>'; | |
| # System settings, don't change a thing | |
| $branch = str_replace("\n", '', `git rev-parse --abbrev-ref HEAD`); |
Get 10 largest directories
find . -type d -print0 | xargs -0 du | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}
Get 10 largest files
find . -type f -print0 | xargs -0 du | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}