This is an OpenPGP proof that connects my OpenPGP key to this Github account. For details check out https://keyoxide.org/guides/openpgp-proofs
[Verifying my OpenPGP key: openpgp4fpr:876c6e2d2245cbb36e92e8e77298a96feea94519]
This is an OpenPGP proof that connects my OpenPGP key to this Github account. For details check out https://keyoxide.org/guides/openpgp-proofs
[Verifying my OpenPGP key: openpgp4fpr:876c6e2d2245cbb36e92e8e77298a96feea94519]
I hereby claim:
To claim this, I am signing this object:
| # Naming conventions of branching. | |
| Stolen mostly from [https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#type] | |
| - feature: A new feature | |
| - fix: A bug fix | |
| - docs: Documentation only changes | |
| - style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) | |
| - refactor: A code change that neither fixes a bug nor adds a feature | |
| - performance: A code change that improves performance |
| @function strip-unit($num) { | |
| @return $num / ($num * 0 + 1); | |
| } | |
| @mixin rem($size: 1.6) { | |
| font-size: ($size * 10) + px; | |
| font-size: (($size * 10) / strip-unit($base_font_size)) + rem; | |
| } |
| #!/bin/bash | |
| output_file='all.min.js' | |
| tmp_file='tmp.js' | |
| cat my_js_1.js my_js_2.js > $tmp_file | |
| curl -d compilation_level=SIMPLE_OPTIMIZATIONS -d output_format=text -d output_info=compiled_code --data-urlencode "js_code@${tmp_file}" http://closure-compiler.appspot.com/compile > $output_file | |
| rm $tmp_file |
| function is_touch_device() { | |
| return !!('ontouchstart' in window); | |
| } |
| /** | |
| * jQuery plugin to make event for both "click" and "touchend" depending on if its a touch device or not | |
| */ | |
| (function($){ | |
| $.fn.touchClick = function(callback) { | |
| var eventType = is_touch_device() ? "touchend" : "click"; | |
| this.each(function() { | |
| $(this).bind(eventType, callback); | |
| if (eventType == "touchend") { | |
| $(this).click(function(e) {e.preventDefault();}); |
| // use one mixin for styling placeholder input text cross browser | |
| @mixin placeholder ($color) { | |
| /* WebKit browsers */ | |
| ::-webkit-input-placeholder { | |
| color: $color; | |
| } | |
| /* Mozilla Firefox 4 to 18 */ | |
| input:-moz-placeholder, | |
| textarea:-moz-placeholder { | |
| color: $color; |
| mogrify -format jpg -quality 80 *.png |
| // show the html5 input type range values | |
| function show_ranges() { | |
| // selector and classname on the range value | |
| var selector = "input[type=range]", | |
| class_name = "range-value"; | |
| // get the range values with jquery | |
| var ranges = $(selector); | |
| // check for support for the html5 range input and then show the value from the range |