Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| # | |
| # core/resolution.rb | |
| # by IceDragon (mistdragon100@gmail.com) | |
| # dc 02/02/2013 | |
| # dm 02/02/2013 | |
| # vr 1.0 | |
| # | |
| # INSTRUCTIONS | |
| # Simply uncomment the resolution you wish to use | |
| # |
| module Enumerable | |
| def each_with_objects(*args, &block) | |
| return to_enum(:each_with_objects, *args) unless block_given? | |
| each do |obj| | |
| yield obj, *args | |
| end | |
| end unless method_defined?(:each_with_objects) | |
| def map_with_objects(*args, &block) |
I hereby claim:
To claim this, I am signing this object:
| def attr_flop(obj, attribute) | |
| old_value = obj.send(attribute) | |
| yield obj, old_value | |
| new_value = obj.send(attribute) | |
| obj.send("#{attribute}=", old_value) | |
| new_value | |
| end | |
| def parse_ip_string(line) | |
| line.scan(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/).each do |addr| | |
| split_array = addr.split(".") | |
| return split_array.map{ |str| str.rjust(3, '0') }.join '.' | |
| end | |
| nil | |
| end | |
| unless ARGV.size == 1 | |
| puts "Invalid number of arguments?" |
| #!/usr/bin/env ruby | |
| # extractall | |
| # Because sometimes I don't feel like typing unzip or tar and just want | |
| # to extract multiple acrhives of varying type, or I dont feel like | |
| # mkdir-ing && doing the previous thing. | |
| # I just wanna "Do the thing" as varrick would say ;3 | |
| require 'fileutils' | |
| require 'optparse' | |
| module ExtractAll |
| require 'pp' | |
| require 'rltk/parser' | |
| require 'rltk/lexer' | |
| require 'rltk/ast' | |
| require 'json' | |
| module ConfigReaders | |
| # OpenComputers has a simple config file format | |
| # lines starting with # are comments (ignoring spaces) | |
| # lines ending with { are objects |
| use sdk | |
| import structs/ArrayList | |
| main: func(args: ArrayList<String>) { | |
| "Hello, World".println() | |
| } |