Skip to content

Instantly share code, notes, and snippets.

View keikun17's full-sized avatar

Cakey | Buddy Magsipoc keikun17

View GitHub Profile
@keikun17
keikun17 / gist:8819331
Last active August 29, 2015 13:56
2014 PC
I sold my iMac (2011 model 27",i5, AMD 6970 video card, 12GB RAM) for PHP 45,000 and am building a new PC.
here are the specs and current price nila from online price checks :
Video Card : - AMD Sapphire R9-290X 4GB GDDR5 - PHP 24,850 Dynaquest Website price
CPU : - i5 4670 3.4-3.8 haswell - PHP 9,950 Dynaquest Website price
RAM : - Corsair Vengeance 16GB quad 1600 CL9 - PHP 6,500 Dynaquest Website price
MOBO : - Asrock Fatal1ty Z87 Killer (LGA 1150) - PHP 6,750 Dynaquest website price
HD : Western Digital 2tb - PHP 4,800 - Dynaquest Website price
Case : Generic - PHP 3,000 - budget
@keikun17
keikun17 / keybase.proof.text
Created April 2, 2014 08:19
keybase proof
### Keybase proof
I hereby claim:
* I am keikun17 on github.
* I am keikun17 (https://keybase.io/keikun17) on keybase.
* I have a public key whose fingerprint is 7E4A 77B1 BD56 9D36 7E9B 023E 12E0 DDC3 E0EF 53BF
To claim this, I am signing this object:
@keikun17
keikun17 / mech_spec.rb
Last active August 29, 2015 14:06
Why i love Rspec 3.1
require 'spec_helper'
describe MWO::Mech do
describe '.all', vcr: {cassette_name: 'all_mechs'} do
subject { described_class.all }
let (:hbk4g) { an_object_having_attributes(name: 'hbk-4g', max_armor: 338, mech_id: 1, total_tons: 50, weight_class: 'Medium') }
let (:com3a) { an_object_having_attributes(name: 'com-3a', max_armor: 178, mech_id: 6, total_tons: 25, weight_class: 'Light') }
it "returns a collection of mechs collection" do
expect(subject).to include(an_instance_of(described_class))
@keikun17
keikun17 / gist:57bc5a3bafbdb714288b
Last active August 29, 2015 14:08
markdown backtick test

code snip something here gets cut pet


code snipp something here gets cut et

@keikun17
keikun17 / decorator.rb
Created February 24, 2015 17:26
decorator
# from https://github.com/keikun17/yapos/blob/master/app/decorators/decorator.rb
require 'delegate'
class Decorator < SimpleDelegator
include ActionView::Helpers
include ActionView::Context
include Rails.application.routes.url_helpers
def self.decorate_collection(arr)
@keikun17
keikun17 / gist:e48b595d1ba09fc0cc6e
Last active August 29, 2015 14:22
Heroes Valerian@Valerian 182.162.116.1
Valerian@Valerian ~ $ traceroute 182.162.116.1
traceroute to 182.162.116.1 (182.162.116.1), 64 hops max, 52 byte packets
1 snakekillsvoldemort (10.126.45.249) 1.513 ms 1.251 ms 0.993 ms
2 192.168.1.1 (192.168.1.1) 1.546 ms 1.423 ms 1.639 ms
3 112.209.96.1.pldt.net (112.209.96.1) 19.285 ms 18.684 ms 18.459 ms
4 119.93.255.213 (119.93.255.213) 17.439 ms 18.331 ms 18.596 ms
5 210.213.132.38.static.pldt.net (210.213.132.38) 18.687 ms
210.213.132.34.static.pldt.net (210.213.132.34) 31.026 ms
210.213.132.38.static.pldt.net (210.213.132.38) 23.660 ms
6 210.213.128.37.static.pldt.net (210.213.128.37) 26.479 ms
@keikun17
keikun17 / gist:a7012f896794bdfa2e4b
Created June 8, 2015 11:11
Heroes 199.108.62.157
Valerian@Valerian ~ $ traceroute 199.108.62.157
traceroute to 199.108.62.157 (199.108.62.157), 64 hops max, 52 byte packets
1 snakekillsvoldemort (10.126.45.249) 1.969 ms 1.195 ms 1.064 ms
2 192.168.1.1 (192.168.1.1) 1.473 ms 1.574 ms 1.613 ms
3 * * 112.209.96.1.pldt.net (112.209.96.1) 37.128 ms
4 119.93.255.213 (119.93.255.213) 18.981 ms 20.316 ms 22.769 ms
5 210.213.132.34.static.pldt.net (210.213.132.34) 18.948 ms
210.213.132.38.static.pldt.net (210.213.132.38) 52.616 ms
210.213.132.34.static.pldt.net (210.213.132.34) 28.564 ms
6 * 210.213.128.21.static.pldt.net (210.213.128.21) 21.094 ms 31.121 ms
@keikun17
keikun17 / jasontorres_ama.md
Created July 21, 2015 05:47
jason_torres.ama

Question by @nico_darambong: why prefer to be the early bird type of hacker as most are nocturnals?

Starting up early gives you a long day. Let’s say 5am to 10pm. Practically equivalent of 2 work shifts :p

Morning (or fresh from sleep) actually is the most effective way to think for me. Basically, I spend my first hour going through what I need to do today (randomly, while Facebook-ing). Simplest to say, mornings are my peace time and I pseudo-meditate by doing nothing.

Additionally, I have sites running globally and processing transactions so I check them if they are still up and our contact emails if there are any critical issues.


@keikun17
keikun17 / mparaz_ama.md
Last active August 29, 2015 14:26
Miguel Paraz AMA

Q: James: What are three differences in terms of tech culture in Oz from Ph?

A: Just my opinion... The main difference is because of the work culture. Since work-life balance is a big thing, people spend more time away from tech and into their families, and going out... Though the good side here is people can spend their free time on the tech they want.

I haven't been into the local startup scene here in Melbourne, but I think there's less motivation to do startups since people earn enough. It also hurts that salaries are higher – good for employees, but hard for startups. So it's also far from “Silicon Valley” here.

But even if there are less startups – maybQe even less startups than the Philippines – there is more tech stuff going on in non-startups. For example, I'm working in enterprise software – for a bank – and their front-end tech is using modern tech stacks.

// a bit of context here, obj will be an input field object that is rendered by an 'in-place' edit feature
obj = $("#environment_233 input").first()
// [<input id="regression_test_environment[name]" name="regression_test_environment[name]" style type="text" value="iii">]
obj
// [<input id="regression_test_environment[name]" name="regression_test_environment[name]" style type="text" value="iii">]
obj.attr('name')
// "regression_test_environment[name]"