###TO DO
- Do the thing
- Zhu Li, did the thing
- Did the thing?
- Done?
- heh?
def is_this_the_krusty_crab?| `curl --http2 -svo /dev/null https://patches.rockstargames.com/prod/gtav/Launcher_EFIGS/GTA_V_Launcher_1_0_440_2.exe -w "\nContent Type: %{content_type} \ | |
| * Trying 208.111.158.187... | |
| * TCP_NODELAY set | |
| * Connected to patches.rockstargames.com (208.111.158.187) port 443 (#0) | |
| * ALPN, offering h2 | |
| * ALPN, offering http/1.1 | |
| * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH | |
| * successfully set certificate verify locations: | |
| * CAfile: /etc/ssl/certs/ca-certificates.crt | |
| CApath: none |
| $ telnet irc.freenode.org 6667 | |
| ... then magic happens... | |
| Trying 185.30.166.38... | |
| Connected to irc.freenode.org. | |
| Escape character is '^]'. | |
| :orwell.freenode.net NOTICE * :*** Looking up your hostname... | |
| :orwell.freenode.net NOTICE * :*** Checking Ident | |
| :orwell.freenode.net NOTICE * :*** No Ident response |
| defmodule Tetris.Board do | |
| def start_link do | |
| Agent.start_link(fn -> | |
| List.flatten(Enum.map(?a..?j, fn x -> | |
| Enum.map(?0..?9, fn y -> | |
| {String.to_atom(<< x, y >>), nil} | |
| end) | |
| end)) | |
| end, name: :board) | |
| end |
| board = List.flatten(Enum.map(?a..?j, fn x -> | |
| Enum.map(0..9, fn y -> | |
| {(String.to_atom(<< x :: utf8 >> <> "#{y}")), nil} | |
| end) | |
| end)) |
###TO DO
def is_this_the_krusty_crab?| ohm = volts/amps | |
| ohm = (volts**volts)/watts | |
| ohm = watts/amps**amps | |
| amps = volts/ohms | |
| amps = watts/volts | |
| amps = sqrt(watts/ohms) | |
| watts = volts*amps | |
| watts = (volts**volts)/ohms |
| require "bundler/gem_tasks" | |
| require "rspec/core/rake_task" | |
| RSpec::Core::RakeTask.new(:spec) | |
| task :default => :spec | |
| namespace :db do | |
| require 'sequel' | |
| DB = Sequel.sqlite("db/bot.db") |
| def seven_ate9(str) | |
| num = str.split("") | |
| x = 7 | |
| y = 9 | |
| num.each do |n| | |
| if n = y | |
| if y.between?(x) | |
| num.delete(y) | |
| end | |
| end |
| #!/usr/bin/env ruby | |
| OPERATORS = { | |
| "x": :*, | |
| "/": :fdiv, | |
| "+": :+, | |
| "-": :- | |
| } | |
| def is_value?(token) |
| :GR1: | |
| :name: Green Tea | |
| :price: 3.11 | |
| :SR1: | |
| :name: Strawberries | |
| :price: 5.00 | |
| :CF1: | |
| :name: Coffee | |
| :price: 11.23 |