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
| /* | |
| * 1. Create new bookmar and add this snippet | |
| * 2. Paste this color on URL field | |
| */ | |
| javascript:!function(){var a=prompt("Digite a palavra que gostaria de ouvir a pronúncia:");null!=a&&window.open("https://translate.google.co.uk/translate_tts?ie=UTF-8&q="+a+"&tl=en")}(); |
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
| /* | |
| * How to generate pageview with casperjs | |
| * | |
| * How to use: | |
| * | |
| * 1. npm i -g phantomjs casperjs | |
| * 2. casperjs ddos.js [number] [url] | |
| * | |
| * number - number of pageview | |
| * url - url to generate pageview |
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
| // Showing `jQuery.each` from 1.7.2 | |
| function (object, callback, args) { | |
| var name, i = 0, | |
| length = object.length, | |
| isObj = length === undefined || jQuery.isFunction(object); | |
| if (args) { | |
| if (isObj) { | |
| for (name in object) { |
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 | |
| /** | |
| * Converte uma palavra no plural para o singular | |
| * @param string $str Uma palavra | |
| * @return string Palavra no singular | |
| * | |
| * https://github.com/Moraga/PluralToSingular | |
| * | |
| */ |
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
| #!/bin/bash | |
| address=$1 | |
| regex='v=(.*)' | |
| if [[ $address =~ $regex ]]; then | |
| video_id=${BASH_REMATCH[1]} | |
| video_id=$(echo $video_id | cut -d'&' -f1) | |
| video_title="$(youtube-dl --get-title $address)" |
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
| /** | |
| * Detect if the browser is an IE | |
| * | |
| * @return int | |
| */ | |
| var isie = (function() { | |
| return navigator.appName.toLowerCase() === 'microsoft internet explorer'; | |
| }()); |
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
| var fs = require('fs'), | |
| readline = require('readline'), | |
| stream = require('stream'), | |
| request = require('request'), | |
| sh = require('shelljs'), | |
| cheerio = require('cheerio'), | |
| im = require('imagemagick'), | |
| booksLink = [], | |
| booksName = [], | |
| catalog = sh.cat('./catalog.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
| [Configuration] | |
| FontName=Inconsolata-dz for Powerline Medium 8 | |
| MiscAlwaysShowTabs=FALSE | |
| MiscBell=FALSE | |
| MiscBordersDefault=TRUE | |
| MiscCursorBlinks=FALSE | |
| MiscCursorShape=TERMINAL_CURSOR_SHAPE_BLOCK | |
| MiscDefaultGeometry=80x24 | |
| MiscInheritGeometry=FALSE | |
| MiscMenubarDefault=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
| var ws = require('websocket-stream') | |
| var stream = ws('ws://localhost:8343') | |
| stream.on('data', function(o) { | |
| console.log("DATA", o) | |
| }) | |
| stream.write(new Buffer('hello')) |
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
| /** | |
| * Attach event | |
| * @param {Object} o DOM Element | |
| * @param {string} e Event name | |
| * @param {Function} f Function | |
| */ | |
| var ea = function(o, e, f) { | |
| try { | |
| o.addEventListener ? | |
| o.addEventListener(e, f, !1) : |