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 getJSON(aUrl,sheetname) { | |
| //var sheetname = "test"; | |
| //var aUrl = "http://pipes.yahoo.com/pipes/pipe.run?_id=286bbb1d8d30f65b54173b3b752fa4d9&_render=json"; | |
| var response = UrlFetchApp.fetch(aUrl); // get feed | |
| var dataAll = JSON.parse(response.getContentText()); // | |
| var data = dataAll.value.items; | |
| for (i in data){ | |
| data[i].pubDate = new Date(data[i].pubDate); | |
| data[i].start = data[i].pubDate; | |
| } |
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
| /** | |
| * Retrieves all the rows in the active spreadsheet that contain data and logs the | |
| * values for each row. | |
| * For more information on using the Spreadsheet API, see | |
| * https://developers.google.com/apps-script/service_spreadsheet | |
| */ | |
| function readRows() { | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var rows = sheet.getDataRange(); | |
| var numRows = rows.getNumRows(); |
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
| $ dpkg -l | grep ^i[HUFW] | |
| iU <broken-package> 2.7.3-0ubuntu2.2 Pakage Description (default version) | |
| $ apt-cache depends <broken-package> | |
| python2.7-minimal (EXAMPLE) | |
| Depends: libpython2.7-minimal | |
| Depends: zlib1g | |
| PreDepends: libc6 | |
| Suggests: binfmt-support | |
| binfmt-support:i386 | |
| Recommends: python2.7 |
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 | |
| args=("$@") | |
| curr= | |
| width=0 | |
| overlay=0 | |
| total_width=`mediainfo '--Inform=Video;%Width%' $1` | |
| outs[0]=$1 |
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 | |
| libxml_use_internal_errors(true); | |
| $file = "rss.player.18.xml"; | |
| $xml = simplexml_load_string($file, null, LIBXML_NOCDATA); |
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
| # Criando backup do seu perfil de usuário | |
| mv ~/.config/google-chrome/Default ~/.config/google-chrome/Default_bkp | |
| #Recriando um novo diretório aonde o seu perfil será criado | |
| mkdir ~/.config/google-chrome/Default | |
| #Copiando os favoritos para a sua nova pasta de perfil | |
| cp ~/.config/google-chrome/Default_bkp/Bookmarks ~/.config/google-chrome/Default/Bookmarks | |
| #Abrindo o Google Chrome com as novas configurações |
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
| cp -r `ls -A | grep -v "folderToExclude"` /tmp |
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
| ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//' |
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
| 'use strict'; | |
| function ObjectProtoOfArray ( ){ | |
| var _this; | |
| var indexActive = 0; | |
| ToArray.prototype = { | |
| add : function(obj, isArray) { |