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
| #! /usr/bin/env ruby | |
| abort "usage: [ruby] #{File.basename $0} <ass> <op/ed>" if ARGV.length != 2 | |
| source = File.read(ARGV[0]).split(/\n/).reject(&:empty?) | |
| lyrics = File.read(ARGV[1]).split(/\n/).reject { |line| | |
| tag = line.split(?,)[3] | |
| tag != 'OP' && tag != 'ED' | |
| } | |
| File.open("#{ARGV[0].split(?.)[0..-2].join}_OP_ED.ass", ?w) { |ass| |
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
| # A derpy way to implement Vigènere cipher using Array#next! | |
| # problemotd.com of 2014/03/06 | |
| module ArrayNext | |
| refine Array do | |
| def next! # like Array#shift, but leaving the array untouched | |
| if not defined? @ary | |
| @ary = self | |
| @ary_ = self.dup |
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
| ## | |
| # Copyright (c) 2014 Giovanni Capuano <[email protected]> | |
| # Released under the MIT License | |
| # http://opensource.org/licenses/MIT | |
| ## | |
| require 'net/http' | |
| require 'json' | |
| require 'uri' |
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
| require 'net/http' | |
| require 'optparse' | |
| options = {} | |
| OptionParser.new do |o| | |
| o.on '-l', '--language LANG', 'Set a language' do |lang| | |
| options[:lang] = lang | |
| end |
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
| #-- | |
| # Copyright (c) 2014 Giovanni Capuano <[email protected]> | |
| # Released under the MIT License | |
| # http://opensource.org/licenses/MIT | |
| #++ | |
| module Chapterable | |
| extend ActiveSupport::Concern | |
| included do |
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
| #!/usr/bin/env ruby | |
| #-- | |
| # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| # Version 2, December 2004 | |
| # | |
| # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| # TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |
| # | |
| # 0. You just DO WHAT THE FUCK YOU WANT TO. | |
| #++ |
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
Show hidden characters
| { | |
| "bold_folder_labels": true, | |
| "enable_hexadecimal_encoding": false, | |
| "ensure_newline_at_eof_on_save": true, | |
| "fade_fold_buttons": false, | |
| "font_size": 14, | |
| "highlight_line": true, | |
| "highlight_modified_tabs": true, | |
| "ignored_packages": | |
| [ |
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
| [ | |
| { "keys": ["ctrl+shift+s"], "command": "stackoverflow_search_from_input"}, | |
| { "keys": ["super+v"], "command": "paste_and_indent" }, | |
| { "keys": ["super+shift+v"], "command": "paste" }, | |
| { "keys": ["ctrl+up"], "command": "swap_line_up" }, | |
| { "keys": ["ctrl+down"], "command": "swap_line_down" }, | |
| { "keys": ["ctrl+d"], "command": "duplicate_line" }, | |
| { "keys": ["ctrl+f"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} }, | |
| { "keys": ["ctrl+g"], "command": "join_lines" }, | |
| { "keys": ["ctrl+m"], "command": "markdown_preview", "args": { "target": "browser", "parser":"markdown" } } |
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 | |
| /** | |
| * Plugin Name: LaCumparola | |
| * Plugin URI: http://omnivium.it | |
| * Description: Import posts from LaCumparola | |
| * Version: 1.0 | |
| * Author: Giovanni Capuano | |
| * Author URI: http://www.giovannicapuano.net | |
| */ |
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
| watchDir: "~/.watch" | |
| refreshEvery: 10m | |
| notifications: | |
| enabled: true | |
| series: | |
| - name: Akatsuki no Yona | |
| fansub: Horrible | |
| res: 1080p | |
| pattern: "[$fansub] $name - [$res]" |