Skip to content

Instantly share code, notes, and snippets.

View twe4ked's full-sized avatar
🐦
just setting up my twttr

Odin twe4ked

🐦
just setting up my twttr
View GitHub Profile

Keybase proof

I hereby claim:

  • I am twe4ked on github.
  • I am odin (https://keybase.io/odin) on keybase.
  • I have a public key whose fingerprint is E7CF B17B 6556 F44C 4D10 4B26 1ED7 776D C9D6 B110

To claim this, I am signing this object:

/**
* (C)Leanest CSS spinner ever
*/
@keyframes spin {
to { transform: rotate(1turn); }
}
.progress {
position: relative;
@twe4ked
twe4ked / region_set.coffee
Last active December 18, 2015 22:29
By @jasoncodes (mainly) and I at @ennova.
Shaded (///) sections are loaded.
Hollow sections are the current viewport that potentially needs to be loaded.
We need to load the bottom section here:
+------+ +------+
|//////| | |
|////+------+ | |
+----|-+ | +------+
| |
+------+
require 'formula'
class Matcher < Formula
URL = 'https://github.com/burke/matcher'
homepage URL
url URL, :using => :git
version '0.0.1'
def install
@twe4ked
twe4ked / gist:5324733
Last active December 15, 2015 21:19 — forked from tatey/gist:5229724
class ViewController
include TableSection
def numberOfSectionsInTableView(tableView)
2
end
def numberOfRowsInSection0(tableView)
@data.count
end
@twe4ked
twe4ked / odinbox.markdown
Last active July 29, 2019 05:01
odinbox

odinbox

  • Intel Core i5 8400 Base:2.80GHz, Turbo:4.00GHz / 9MB / LGA1151 / 6 Core / 65W / Coffee Lake
  • Gigabyte GeForce GTX 1080 Windforce OC GV-N1080WF3OC-8GD
  • MSI Z370-A PRO Motherboard MSI Z370-A PRO MB, Z370, 4x DDR4, 2x PCIE3.0 x16, 4x PCI-E3.0 x1, 6x SATA3, M.2, 8x USB3.1, VGA, DVI, DisplayPort, ATX, White LED
  • Corsair Vengeance LPX 16GB (2x8GB) 3200MHz DDR4 CMK16GX4M2B3200C16
  • OCZ Agility 3 240G SATA3 SSD
  • Corsair TX-850 V2 ATX Power Supply 140mm fan
  • Thermaltake Black Commander MS-II Mid Tower Chassis (USB3)
@twe4ked
twe4ked / factorial.py
Created September 26, 2012 06:43 — forked from ghoseb/factorial.py
The evolution of a Python Programmer
#Newbie programmer
def factorial(x):
if x == 0:
return 1
else:
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal
@twe4ked
twe4ked / specs.md
Created July 5, 2012 23:40
Cheap gaming PC

Cheap gaming PC

Budget: $800-1000

Graphics Card [$150 - $250]

The graphics card must have a Mini DisplayPort.

@twe4ked
twe4ked / invite_code.rb
Created June 19, 2012 02:58
Beta code system.
class InviteCode < ActiveRecord::Base
validate :invite_code, :presence => true
def to_s
invite_code
end
def self.generate
8.times.map { [*?a..?z,*?A..?Z].sample }.join
end
@twe4ked
twe4ked / chosen.rb
Created May 8, 2012 00:38
Testing chosen with RSpec.
def search_chosen(selector, search)
page.execute_script "jQuery('#{selector}').click();"
find('div.chzn-search input').set search
end
def select_from_chosen(selector, name)
page.execute_script "jQuery('#{selector}').click();"
page.execute_script "jQuery(\".chzn-results .active-result:contains('#{name}')\").click();"
wait_for_ajax
end