This file contains 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
require "nokogiri" | |
require "open-uri" | |
require "fileutils" | |
list = File.open("bmbslsk.txt").read.split("\n").sort | |
#list = [list.first] | |
list.each do |url| | |
output_file = "D:/Devs/bmbslsk/" + url[/\d+/] |
This file contains 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 AJAXFluentInterface(uri) { | |
this.uri = uri || ""; | |
this.retrieve = function(data, type) { | |
return $.ajax({ | |
type: type || "GET", | |
url: this.uri, | |
dataType: "json", | |
data: data |
This file contains 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
import redis | |
from zope.interface import Interface, implements | |
try: #pragma NO COVERAGE | |
import simplejson as json | |
except ImportError: #pragma NO COVERAGE | |
import json | |
class RedisSession(dict): | |
""" Provides a lazy interface for presenting data stored in a redis DB as a |
This file contains 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
10/08/2012 | |
- Adicionada opção para o formato 0XX11987654321, com ou sem zero no sufixo (Contribuição: Carlos Luizetto / Roberto Akama) | |
- Adicionada verificação da "gem vcard" para os casos em que o componente responsável pela leitura e edição de vCards não está instalado | |
02/08/2012 | |
- Correção de bugs | |
- Lista de prefixos da Nextel (SME/trunking não faz parte da mudança) (Contribuição: Maurício Iwata) | |
- Adição do formato 9-XXXX-XXXX (Contribuição: Carlos Luizetto) | |
This file contains 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
/^(?<collection_path>.*(?<collection_name>MP\d))\\(?<genre_name>.*)\\((?<artist_name>.*)(\s\((?<country_name>.{3})\))?)\\(?<album_year>\d{4})\s-\s(?<album_title>.*)\\/ | |
// !OK | |
"D:\\MP3\\Genre\\Artist (Cty)\\2004 - Album Title\\01 - Song Title.mp3" => { | |
"collection_path"=>"D:\\MP3", | |
"collection_name"=>"MP3", | |
"genre_name"=>"Genre", | |
"artist_name"=>"Artist (Cty)", | |
"country_name"=>nil, | |
"album_year"=>"2004", |
This file contains 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
** Invoke library:build (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
** Execute library:build | |
rake aborted! | |
undefined method `external_encoding' for #<String:0xa5e559c> | |
/usr/local/lib/ruby/1.9.1/psych.rb:203:in `parse' | |
/usr/local/lib/ruby/1.9.1/psych.rb:203:in `parse_stream' | |
/usr/local/lib/ruby/1.9.1/psych.rb:151:in `parse' | |
/usr/local/lib/ruby/1.9.1/psych.rb:127:in `load' |
This file contains 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
wscript C:\path\to\pageant.loader.vbs | |
Tip: use mlin's StartupCPL http://www.mlin.net/StartupCPL.shtml | |
or add a shortcut to the vbs in the startup folder under start menu |
This file contains 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
source 'https://rubygems.org' | |
gem 'rails', '3.2.11' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'pg' | |
# Gems used only for assets and not required |
This file contains 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
class AddAttachmentAvatarToUsers < ActiveRecord::Migration | |
def self.up | |
change_table :users do |t| | |
t.attachment :avatar | |
end | |
add_column :users, :avatar_dropbox, :string, :default => {}.to_yaml | |
end | |
def self.down |
This file contains 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
// ==UserScript== | |
// @name MediaboomShittyProtection | |
// @namespace @MendelGusmao | |
// @include *mediaboom.org/* | |
// @version 1 | |
// @require http://code.jquery.com/jquery-1.9.0.min.js | |
// @require https://raw.github.com/carlo/jquery-base64/master/jquery.base64.min.js | |
// ==/UserScript== | |
var matcher = /url=([^=]+)/; |