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
| while read url; do | |
| url=${url%$'\r'} | |
| echo $url >> response.txt | |
| curl --head $url >> response.txt | |
| done <urls.txt |
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
| git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git |
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 containsObject(obj, list) { | |
| for (var i = 0; i < list.length; i++) { | |
| if (list[i] === obj) { | |
| return true; | |
| } | |
| } | |
| return 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
| function round(value, decimals) { | |
| return Number(Math.round(value+'e'+decimals)+'e-'+decimals); | |
| } |
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
| # Functions | |
| # -- System | |
| local() { cd /c/xampp/htdocs ; } | |
| # Aliases | |
| # -- System | |
| alias ll='ls -l' | |
| alias ls='ls -F --color --show-control-chars' | |
| # -- Git |
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
| mklink /J "path/to/destination/folder" "path/to/source/folder" |
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 echo htmlspecialchars($_GET["url-parameter"]); ?> |
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
| SetOutputFilter DEFLATE |
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($) { | |
| $.fn.closest_descendent = function(filter) { | |
| var $found = $(), | |
| $currentSet = this.children(); // Current place | |
| while ($currentSet.length) { | |
| $found = $currentSet.filter(filter); | |
| if ($found.length) break; // At least one match: break loop | |
| // Get all children of the current set | |
| $currentSet = $currentSet.children(); | |
| } |
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
| @mixin mini-grid($column-name, $breakpoints, $columns) { | |
| .#{$column-name} { | |
| float: left; | |
| width: 100%; | |
| } | |
| $counter: 1; | |
| @each $breakpoint in $breakpoints { | |
| $column-count: nth($columns, $counter); | |
| $column-width: unquote(100 / $column-count + '%'); | |
| @media all and (min-width: $breakpoint) { |
NewerOlder