Skip to content

Instantly share code, notes, and snippets.

View buritica's full-sized avatar
💭
💀

Juan Pablo Buriticá buritica

💭
💀
View GitHub Profile
@buritica
buritica / gist:5105594
Last active December 14, 2015 15:09 — forked from JeffreyWay/gist:5105516
In browser ace editor. - Paste the whole tag in the url bar and press enter - Bookmark the page - Profit!!
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;font-size:14px}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/php");</script>
@buritica
buritica / jshangouts-pruebas.md
Last active December 16, 2015 07:49
Vinculos sobre lo que hablamos en #JShangouts de pruebas el 16 de Abril
var glossyData = {
entryClass:GlossyEntry,
entry_kind : "phone-glossy",
entry_title : "Hyundai Glossy Ad",
entry_url : '',
click_url: "http://adclick.g.doubleclick.net/aclk?sa=L&ai=BKr-v9ivYUtOTO4vR0AHxyoDgC8664rwEAAAAEAEg5pHVHjgAWN64h4GNAWDJxqmLwKTYD7IBDTE5Mi4xNjguNi4xNzK6AQlnZnBfaW1hZ2XIAQnaASBodHRwOi8vMTkyLjE2OC42LjE3MjozMDAwL3Nvc2thL8ACAuACAOoCLC8xNTEyMzc5OC9PbnN3aXBlX1Rlc3RQdWIvZW5naW5lZXJpbmdhZGNsb25l-AL80R6AAwGQA6QDmAOkA6gDAeAEAaAGINgGAg&num=0&sig=AOD64_38afEWBj9eYWEkxbmd01KL16h-ZQ&client=ca-pub-6633971051468686&adurl=",
view_url: "http://pubads.g.doubleclick.net/pagead/adview?ai=BKr-v9ivYUtOTO4vR0AHxyoDgC8664rwEAAAAEAEg5pHVHjgAWN64h4GNAWDJxqmLwKTYD7IBDTE5Mi4xNjguNi4xNzK6AQlnZnBfaW1hZ2XIAQnaASBodHRwOi8vMTkyLjE2OC42LjE3MjozMDAwL3Nvc2thL8ACAuACAOoCLC8xNTEyMzc5OC9PbnN3aXBlX1Rlc3RQdWIvZW5naW5lZXJpbmdhZGNsb25l-AL80R6AAwGQA6QDmAOkA6gDAeAEAaAGINgGAg&sigh=-__Sf5O1IBg&adurl="
};
@buritica
buritica / click_url_replace.js
Last active January 4, 2016 18:49
replace click url in ad iframe
function receiveMessage(e) {
var clickUrl;
if (typeof e.data === 'string' && e.data.indexOf('clickUrl') > -1) {
clickUrl = e.data.split('/')[1];
var links = document.getElementsByTagName('a');
[].forEach.call(links, function(link) {
link.href = link.href.replace('%%CLICK_URL_UNESC%%', clickUrl);
});
}
}
@buritica
buritica / glossy.html
Created February 13, 2014 17:01
Glossy JSON format for Leaf
<script>
var message = JSON.stringify({
view_url: '%%VIEW_URL_UNESC%%',
click_url: '%%CLICK_URL_UNESC%%',
cachebuster: '%%CACHEBUSTER%%',
glossy_id: '{{replace me with glossy id}}',
type: 'glossy',
pixels: [
'{{replace me with pixel or delete me}}',
'{{replace me with pixel or delete me}}'
@buritica
buritica / currentScenarioOrBackground.js
Created February 16, 2014 20:32
Type error thrown when trying to run cucumber.js with examples
{ payloadType: 'scenario',
setBackground: [Function: setBackground],
buildScenarios: [Function: buildScenarios],
getKeyword: [Function: getKeyword],
getName: [Function: getName],
getDescription: [Function: getDescription],
getUri: [Function: getUri],
getLine: [Function: getLine],
getBackground: [Function: getBackground],
addStep: [Function: addStep],
@buritica
buritica / response.js
Last active August 29, 2015 13:57
ios-driver response arguments to waitForElementByCss
{ '0': null,
'1':
{ message: 'bug.null\nBuild info: version: \'unknown\', revision: \'unknown\', time: \'unknown\'\nSystem info: os.name: \'Mac OS X\', os.arch: \'x86_64\', os.version: \'10.9.2\', java.version: \'1.7.0_21\'\nDriver info: driver.version: unknown',
screen: null,
cause:
{ screen: null,
class: 'java.lang.NullPointerException',
stackTrace: [Object] },
class: 'org.openqa.selenium.WebDriverException',
stackTrace:

Keybase proof

I hereby claim:

  • I am buritica on github.
  • I am buritica (https://keybase.io/buritica) on keybase.
  • I have a public key whose fingerprint is 393D 342F B95C 8BAF 024F EF9F 0592 7A5E ADBA BEF5

To claim this, I am signing this object:

@buritica
buritica / pr.md
Last active August 29, 2015 13:57
PR Template

What's this PR do?

Where should the reviewer start?

How should this be manually tested?

Any background context you want to provide?

What are the relevant tickets?

Screenshots (if appropriate)

Questions:

  • Does the knowledge base need an update?

Dependencies

@buritica
buritica / collections.json
Created April 27, 2014 00:30
Ember Example
{
"collection": [
{
"_id": 1,
"title": "Spring 2014",
"active": true,
"code": "SP14",
"image": "http://ec.dev/collection.jpg",
"products": [
{