##Install
- Get Node.js.
- Copy
yt.js
andpackage.json
to your computer. - Run
npm install
to download dependencies. chmod +x yt.js
so you can execute it.
##Usage Example
//The script will hide posts with TEXT_FLAG in their tags (tags != source, fyi) | |
var TEXT_FLAG = "father"; | |
//Adds contains to String prototype, | |
//returns true if string contains substring | |
String.prototype.contains = function(it) { return this.indexOf(it) != -1; }; | |
//list = all <li>, posts are contained there | |
//list_array = just id numbers for posts | |
var list = document.getElementsByTagName('li'); |
module CandidatosHelper | |
def get_candidates() | |
candidates = { | |
0 => ["Agustin Irizarry",candidatos_agustinirizarry_path], | |
1 => ["Cecilio Ortiz",candidatos_cecilioortiz_path], | |
2 => ["Douglas Santos",candidatos_douglassantos_path], | |
3 => ["Hector Huyke",candidatos_hectorhuyke_path], | |
4 => ["Jorge Schmidt",candidatos_jorgeschmidt_path], |
#!/bin/bash | |
# ---------------------------------------------------------------------------- | |
# "THE BEER-WARE LICENSE" (Revision 42): | |
# <carlos.andreu[at]upr.edu> wrote this file. As long as you retain this notice you | |
# can do whatever you want with this stuff. If we meet some day, and you think | |
# this stuff is worth it, you can buy me a beer in return. | |
# ---------------------------------------------------------------------------- | |
#Your home.uprm.edu login goes here: |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0" /> | |
<title>jQueryMobileListTest</title> | |
<link rel="stylesheet"href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" /> |
/** | |
* WL.Server.invokeHttp(parameters) accepts the following json object as an argument: | |
* | |
* { | |
* // Mandatory | |
* method : 'get' or 'post', | |
* path: value, | |
* | |
* // Optional | |
* returnedContentType: any known mime-type or one of "json", "css", "csv", "javascript", "plain", "xml", "html" |
##Install
yt.js
and package.json
to your computer.npm install
to download dependencies.chmod +x yt.js
so you can execute it.##Usage Example
Host IP: 136.145.116.44 | |
Web Server: Apache/2.2.22 (Ubuntu) | |
Powered-by: PHP/5.3.10-1ubuntu3.3 | |
Keyword Found: Maraton | |
DB Server: MySQL >=5 | |
Selected Column Count is 14 | |
Valid String Column is 1 | |
Current DB: g13 | |
Data Base Found: information_schema | |
Data Base Found: g13 |
var file = require('file'), | |
fs = require('fs'), | |
musicmetadata = require('musicmetadata'), | |
rootDir = '/Users/carlosmarx/musicfiles', | |
SPACE = '\n', | |
getMetaData = function (file, cb) { | |
var result = {}, | |
parser = new musicmetadata(fs.createReadStream(file)); |
{ | |
"javascript_linter": "jshint", | |
"jshint_options": { | |
"regexdash": true, | |
"browser": true, | |
"devel" : true, | |
"jquery" : true, | |
"wsh": true, | |
"trailing": true, |
function fish_prompt | |
if not set -q __git_cb | |
set __git_cb (set_color magenta)(git branch ^/dev/null | grep \* | sed 's/* //')(set_color normal) | |
end | |
echo #space between commands | |
set_color yellow | |
printf '%s' (whoami) |