I hereby claim:
- I am djanix on github.
- I am janic (https://keybase.io/janic) on keybase.
- I have a public key ASBugaCCcBV1sLJDhXULIuobCBpew0QB4cFODO6kBkOOeQo
To claim this, I am signing this object:
| #!/bin/bash | |
| url="http://sample.com" | |
| inputFile="input.m3u" | |
| outputFileChannels="output-channels.m3u" | |
| outputFileMovies="output-movies.m3u" | |
| outputFileSeries="output-series.m3u" | |
| lineCount=1 | |
| previousLine='' | |
| regexFilter="NHL\sNETWORK|(\|(EN|US|CA)\|)" |
I hereby claim:
To claim this, I am signing this object:
| # NVM version shortcut | |
| # change title name of tab in terminal | |
| function title { | |
| echo -ne "\033]0;"$*"\007" | |
| } | |
| cd() { | |
| builtin cd "$@" || return | |
| #echo $PREV_PWD | |
| if [ "$PWD" != "$PREV_PWD" ]; then |
| //usage: @include ellipsis(3); | |
| @mixin ellipsis($lineNumber, $lineHeight: 1.4em) { | |
| display: -webkit-box; | |
| line-height: $lineHeight; | |
| max-height: $lineNumber * $lineHeight; | |
| overflow: hidden; | |
| -webkit-line-clamp: $lineNumber; | |
| -webkit-box-orient: vertical; | |
| } |
| module.exports = { | |
| init: function () { | |
| var self = this; | |
| self.setDeviceType(); | |
| $(window).resize(function () { | |
| self.setDeviceType(); | |
| }); |
| - git rebase -i HEAD~3 (pour voir les 3 derniers commits par exemple) | |
| effacer les lignes qu'on ne veut pas (sauf une) | |
| ctrl-c + :wq (control-c sert a quitter le insert mode) |
| <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" | |
| viewBox="0 0 1000 20" preserveAspectRatio="none" width="100%" height="20"> | |
| <polygon points="0,0 1000,0 500,20" style="fill:#cc3333; stroke: lightgrey; stroke-width: 6;"/> | |
| </svg> |
| function loadItems(url, params, callback) { | |
| $.ajax({ | |
| url: url, | |
| dataType: 'json', | |
| contentType: 'application/json', | |
| data: JSON.stringify(params), | |
| type: 'POST' | |
| }) | |
| .done(function (data, textStatus, jqXHR) { | |
| var result = ((typeof data) == "string") ? $.parseJSON(data) : data; |
| /* | |
| * Clearfix: contain floats | |
| * | |
| * For modern browsers | |
| * 1. The space content is one way to avoid an Opera bug when the | |
| * `contenteditable` attribute is included anywhere else in the document. | |
| * Otherwise it causes space to appear at the top and bottom of elements | |
| * that receive the `clearfix` class. | |
| * 2. The use of `table` rather than `block` is only necessary if using | |
| * `:before` to contain the top-margins of child elements. |