Skip to content

Instantly share code, notes, and snippets.

View codeorelse's full-sized avatar

codeorelse

View GitHub Profile
{"id":"4383","submissionAnswers":[{"questionId":"1604","parentQuestionId":null,"answers":[{"key":"cb1c0be2-80ab-4b69-b9b2-9f57e5e13084","text":"Nee"}]},{"questionId":"3e06dfa2-8b50-4381-98ef-4bf663933375","parentQuestionId":"1639","answers":[{"key":"","text":"6"}]},{"questionId":"1b05ef6f-1951-4f3e-94c1-558b35ec2e38","parentQuestionId":"1639","answers":[{"key":"","text":"7"}]},{"questionId":"176f55ab-7e42-45b7-a8d8-df7549d40170","parentQuestionId":"1639","answers":[{"key":"","text":"5"}]},{"questionId":"e5b24410-aea7-41c9-a578-0983ef21b961","parentQuestionId":"1639","answers":[{"key":"","text":"3"}]},{"questionId":"1854","parentQuestionId":null,"answers":[{"key":"","text":"nee hor"}]},{"questionId":"1862","parentQuestionId":null,"answers":[{"key":"","text":"2023-05-18 09:00:00.000"}]},{"questionId":"4313","parentQuestionId":null,"answers":[{"key":"","text":"voetballuh"},{"key":"","text":"tennis"}]},{"questionId":"4327","parentQuestionId":null,"answers":[{"key":"","text":5.0}]}]}
@codeorelse
codeorelse / CIStage.yml
Created September 2, 2021 06:25
Daily Energy Github Action
# This is a basic workflow to help you get started with Actions
name: Stage - CI CD
# Controls when the action will run.
on:
push:
tags:
- Release/Stage/**
window.addEventListener('message', (e) => {
if (e.data && e.data.type === 'GET_MIAB_CONFIG') {
var meh_seq_research_config = {
auctionId: '${AUCTION_ID}',
creativeSize: '${CREATIVE_SIZE}',
creativeId: '${CREATIVE_ID}',
cookieName: 'stl_ojt18_prospecting',
supplyType: '${SUPPLY_TYPE}',
seller: '${SELLER_MEMBER_ID}',
placementId: '${TAG_ID}',
@codeorelse
codeorelse / tag.min.js
Created March 8, 2018 17:16
AppNexus VIA Tag 2.0
window.addEventListener("message",function(e){if(e.data&&"LEMONPI_CREATIVE_RENDERED"===e.data.name)var a=setInterval(function(){"undefined"!=typeof mraid&&(clearInterval(a),e.source.postMessage({type:"EXECUTE_KOSI_METHOD",method:"trackInteraction",args:["other","via","st:${SUPPLY_TYPE}_mraid:"+mraid.getVersion()+"_app:${EXT_APP_ID}"]},"*"))},100)});
window.configuration = {
id: 'xxxxxxx',
deepLink: 'http://www.opel.nl/apps/Configurator/KARL/Default.aspx#configurator/public/start?id=xxxxxx',
model: 'KARL',
color: 'Absolute Red (GG2)', // Name of the selected color
imageUrl: 'http://opel.pics/Picture.aspx?picture=BASEv01_GAZ_GROUNDSHADOW_TIRE14_BASEv01_GAZ-PAINTv01_GAZ-REARBUMPERv01_TAOHv01_JM4_RRAv01_OFF-T3N_A8D_GLASSv01_NAMEPLATESv01_NAMEPLATEv01_GAZ-WE1v01_OFF-T79v01_BTOv01_GAZ-D75v01_TTQ_V22v01&folder=0H%2048&ccl=GAZ&trm=TAOH&v=2&gmmy=2018A&wheel=skip&format=png&w=380&s=front', // First image of the car in the configuration
};
@codeorelse
codeorelse / index.js
Last active February 17, 2017 13:31
Basic server Heroku
var express = require('express');
var app = express();
app.get('/', function (req, res) {
res.send('Hola Luis!');
});
app.listen(process.env.PORT || 3000, function () {
console.log('App listening on port 3000!');
})
@codeorelse
codeorelse / breakWordsIntoTwoWords.js
Last active January 31, 2017 08:43
Break word instances to seperate words
var breakWordsIntoTwoWords = function(sentenceContainingWord, word) {
var regex = /hypotheek([^ ][-a-z]*)/gi;
while ((m = regex.exec(sentenceContainingWord)) !== null) {
if (m.index === regex.lastIndex) {
regex.lastIndex++;
}
// The result can be accessed through the `m`-variable.
var firstLetterCapital = word.substr(0,1).toUpperCase();
var searchForWord = m[0].substr(0,1) === firstLetterCapital ? firstLetterCapital + word.substr(1) : firstLetterCapital.toLowerCase() + word.substr(1);
/**
* Adwords Uptime Robot Monitoring script
*
* Script that checks whether the websites that the Adword campaigns rely on are still live
* and respond fast enough, or if not, pause the related campaigns.
*
* Services used to determine uptime:
* - Uptime Robot
*
* @version 0.1.0
@codeorelse
codeorelse / structure.md
Last active October 19, 2016 18:32
LemonPI plain HTML structure

LemonPI plain HTML structure

1. Required files

Every creative should at least contain these files in the root directory:

index.html

Contains the structure of the creative. Inline CSS and JavaScript will be ignored.

Ad dimensions HEAD tag

The index.html must have a tag in the HEAD that specifies the creative's dimensions.

@codeorelse
codeorelse / scraper.0.2.24.min.js
Created March 6, 2016 20:12
Scraper Client JS
/*! bluemango-scraper - v0.2.24 - 2016-02-16 */
!function(a){"use strict";function b(){return window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.location.href}function c(){return window.location.hash}function d(){return window.location.pathname}function e(){return window.location.origin}function f(a){var b=/^(?:[a-z]+:)?\/\//i;return b.test(a)}function g(b,c){var d=h(b.split("#")[0]),e=j.getOrigin()+j.getPathName(),f=[];return a.each(c,function(a,b){"number"==typeof a&&(a=b,b=c[a]);var e=d[a];e||(e=b),f.push(a+"="+e)}),e+"?"+f.join("&")}function h(a){for(var b,c={},d=a.slice(a.indexOf("?")+1).split("&"),e=0;e<d.length;e++)b=d[e].split("="),c[b[0]]=b[1];return c}var i={allowAllFieldNames:!1,debug:!1,fieldNames:["id","available","title","imageUrl","clickUrl","category","basket","description","priceNormal","priceDiscount","logoUrl","stickerText","custom1","custom2","custom3","custom4"]},j=function(b,c){