I hereby claim:
- I am lekkerduidelijk on github.
- I am lekkerduidelijk (https://keybase.io/lekkerduidelijk) on keybase.
- I have a public key ASBcKtkg_UxifVNciqpHn-WMDSEV2rN1CtAniJnJZUOicwo
To claim this, I am signing this object:
| // | |
| // SASS mixin for crossfading elements | |
| // | |
| // Usage: | |
| // | |
| // .element { | |
| // @include crossfade($num: 2, $fade: 5, $visible: 0); | |
| // | |
| // left: 0; | |
| // opacity: 0; |
I hereby claim:
To claim this, I am signing this object:
| var t = 0; | |
| $(".receipt-price").each(function() { | |
| // EU version - comma decimal separator | |
| t += parseFloat($(this).text().substring(1).replace(',','.')); | |
| // US version - dot decimal separator | |
| // t += parseFloat($(this).text().substring(1)); | |
| }); | |
| console.log(t.toFixed(2)); |
| <?php | |
| // Add to your functions.php file | |
| function disable_search( $query, $error = true ) { | |
| if ( is_search() ) { | |
| $query->is_search = false; | |
| $query->query_vars[s] = false; | |
| $query->query[s] = false; | |
| // to error |
| var t = 0; | |
| $(".invoices-list a").each(function() { | |
| t += parseFloat($(this).text().substring(1)) | |
| }); | |
| console.log(t); |
| // Source: http://stackoverflow.com/a/22763925 | |
| function parseVideo(url) { | |
| // - Supported YouTube URL formats: | |
| // - http://www.youtube.com/watch?v=My2FRPA3Gf8 | |
| // - http://youtu.be/My2FRPA3Gf8 | |
| // - https://youtube.googleapis.com/v/My2FRPA3Gf8 | |
| // - Supported Vimeo URL formats: | |
| // - http://vimeo.com/25451551 | |
| // - http://player.vimeo.com/video/25451551 |
| // LESS | |
| .form-field { | |
| border: 1px solid #ccc; | |
| padding: .5em 1em; | |
| input& { | |
| height: 2em; | |
| } | |
| textarea& { | |
| height: auto; | |
| } |
| <?php | |
| // Usage | |
| // $linked = lwp_get_language_link($siteid, $postid); | |
| // $link = $linked['link']; | |
| // $title = $linked['title']; | |
| // Return | |
| // array['link'] for link to post |
| function clickableBlock() { | |
| // Each element with data-clickable is searched for an link and onclick | |
| // the link is followed | |
| $("[data-clickable]").each(function(){ | |
| var $this = $(this), | |
| link = $this.find("a").attr("href"); | |
| if(link) { | |
| $this.click(function(){ | |
| window.location = link; |