Skip to content

Instantly share code, notes, and snippets.

// -------------------------------------------------------
// Rest System
// -------------------------------------------------------
// Automatically converts offline seconds to exp, limit of
// how many days offline can be set on OnInit.
// -------------------------------------------------------
// Author: Ricardo Nacif
// Thanks to Cyan Hijirikawa for helping with the base
// -------------------------------------------------------
// Version
<?xml version="1.0" encoding="UTF-8"?>
<clientinfo>
<desc>Ragnarok Client Information</desc>
<servicetype>korea</servicetype>
<servertype>sakray</servertype>
<hideaccountlist />
<passwordencrypt />
<passwordencrypt2 />
<extendedslot />
<readfolder />
// add a listener and create an array called DataLayerResults
var DataLayerResults = [];
(function() {
console.log("Listening for data layer events");
WSI.dataLayer.registerCallback(function(a, b, c) {
var new_event = {};
@Ricardonacif
Ricardonacif / appium_bug
Last active August 29, 2015 14:12
Appium Bug
require 'selenium-webdriver'
require 'pry'
capabilities = {
:deviceName => 'iPhone 5s',
:browserName => 'Safari',
:platformVersion => '8.1',
:platformName => 'iOS',
:newCommandTimeout => 9999,
:app => 'safari',
@Ricardonacif
Ricardonacif / tap_simulate.js
Created October 14, 2014 19:24
Simulate Tap
var element_locator = '#fastclick';
function loadYui(callback) {
// Adding the script tag to the head as suggested before
var head = document.getElementsByTagName('head')[0];
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = "http://yui.yahooapis.com/3.18.0/build/yui/yui-min.js";
LanceDaVez::Application.routes.draw do
match '/contact', to: "aguarde#contact"
root :to => "aguarde#home"
root to: 'aguarde#home'
# The priority is based upon order of creation:
# first created -> highest priority.
# Sample of regular route: