Skip to content

Instantly share code, notes, and snippets.

@ardianlesmana
ardianlesmana / Challenges Schedule
Created December 1, 2016 19:37
Challenges Schedule
+------+---------------------+---------------------+-----------+--------------+-------------------------------------------------+----------------------------------+
| id | starts_at | ends_at | companion | mechanic | challenge_url | challenge_md5sum |
+------+---------------------+---------------------+-----------+--------------+-------------------------------------------------+----------------------------------+
| 626 | 2016-12-01 19:37:46 | 2016-12-01 19:45:46 | Penguin | ClassicDot | http://www.mocky.io/v2/582f76692600009a1c65f138 | 0aecb2adf620e90adaa29b7d7b26cbe2 |
| 627 | 2016-12-01 19:47:46 | 2016-12-01 19:55:46 | Emilio | ClassicDot | http://www.mocky.io/v2/582f76692600009a1c65f138 | 0aecb2adf620e90adaa29b7d7b26cbe2 |
| 628 | 2016-12-01 19:57:46 | 2016-12-01 20:05:46 | Captain | ClassicDot | http://www.mocky.io/v2/582f76692600009a1c65f138 | 0aecb2adf620e90adaa29b7d7b26cbe2 |
| 629 | 2016-12-01 20:07:46 | 201
@ardianlesmana
ardianlesmana / challenge.json
Last active December 2, 2016 16:01
JSON representation of Companion Challenge for Admin Tools
{
"challenge": {
"id": null,
"startsAt": "2016-12-01T14:00:00",
"endsAt": "2016-12-07T14:00:00",
"companion": "Captain",
"mechanic": "ClassicDot",
"challenge_url": "",
"challenge_md5sum": "",
"s3_bucket": "",
@ardianlesmana
ardianlesmana / .vimrc
Created June 9, 2016 14:28
vim settings
execute pathogen#infect()
syntax on
filetype plugin indent on
set t_Co=256
colorscheme Tomorrow-Night
set runtimepath^=~/.vim/bundle/ctrlp.vim
set number
module Localization
extend ActiveSupport::Concern
included do
# Returns an array of locales in order of preference, so that
# we know how to fall back gracefully if the requested locale is
# the requested data does not exist for the requested locale.
# Example: [pt-pt, pt, en]
#
def self.get_locale_list(locale)
@ardianlesmana
ardianlesmana / 0_reuse_code.js
Created April 27, 2016 14:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ardianlesmana
ardianlesmana / rspec_model_testing_template.rb
Created March 6, 2016 13:56 — forked from PWSdelta/rspec_model_testing_template.rb
Rails Rspec model testing skeleton & cheat sheet using rspec-rails, shoulda-matchers, shoulda-callbacks, and factory_girl_rails. Pretty much a brain dump of examples of what you can (should?) test in a model. Pick & choose what you like, and please let me know if there are any errors or new/changed features out there. Reddit comment thread: http…
# This is a skeleton for testing models including examples of validations, callbacks,
# scopes, instance & class methods, associations, and more.
# Pick and choose what you want, as all models don't NEED to be tested at this depth.
#
# I'm always eager to hear new tips & suggestions as I'm still new to testing,
# so if you have any, please share!
#
# @kyletcarlson
#
# This skeleton also assumes you're using the following gems:

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google