Skip to content

Instantly share code, notes, and snippets.

@ilijamt
ilijamt / OpenLayers-DragPopup.js
Created September 23, 2013 08:24
Makes an OpenLayers popup draggable around the map.
/*
* Move a popup with a drag.
*
* Uses Underscore and jQuery for implementation
*
* @class
*/
OpenLayers.Control.DragPopup = OpenLayers.Class(OpenLayers.Control, {
down: false,
popPnt: null,
@ilijamt
ilijamt / Defiance ARKFALL CODES
Created September 22, 2013 17:26
You can use this snippet to unlock all the available Arkfall codes for the game Defiance. Even if you have activated all the codes, nothing bad is gonna happen if you do this again. It will take about 3 min to run through all the available code. Just visit the Defiance EGO page: http://www.defiance.com/en/my-ego Copy the script and paste it into…
$.getScript("http://underscorejs.org/underscore-min.js")
.done(function (script, textStatus) {
console.log(textStatus);
var $code = $("#arkfallcode")
var $button = $("#codeRedemption button.submit")
var $error = $("#voucher_error");
var delay = 0;
var codes = "E2DFMO,6CIBJT,9ELBUP,ETCTFJ,AMY2ZH,FCCEPO,KBZMVZ,FYKQZX,HVN5YD,TFM2IH,RPR9ZS,TLK9F1,VPZK7B,V2227Q,VO5DHS,XCTFGY,XBNBPE,YJUICP,8MKLUL,SCSD5T,DKCJK3,CWAPDX,WA94BD,TWIK9S,PVXDTU,VGFSW9,4OSBUA,RQXPGX,LDBAMY,BJT9ID,Z5OP9L,CH8FJB,I71ADU,GBIXKI,GT1P3H,W0UODG,3Q6VZN,JJD6N5,VW4LQ0,MVV8SL,WKJIXT,U1T8PG,CEOZCG,6ZDGAR,YOT4ZA,LQ7WVN,7VLERN,O2AM1S,J71AAM,IS3KAF,HTG7BF,PSZ3IE,LFM6RV,UUXTGI,OTIINU,34TPUS,FBWTVC,6F9KIV,3WWJKK,8MOMX2,A1AQCA,JIMOFE,2A9WZT,KHIBBT,M2BDRP,HMDQRN,EXA6RK,WOMCCQ,YW6ZQ8,LK47XN,JQ9ZTM,R1T3EB,WBIEOS,JIGR3J,RXVI6J,ISHSQF,CHUROO,MEWFWY,VMNNRE,DT0CHZ,K880P4,RFTRHS,OIUQQ5,FZY8CB,53VIZG,OLXQJ6,V5WKFT,OBWTZL,HC1GN0,ZFR5TA,D91AQK,W72URO,41US8B,YDBF4L,CNABZX,6JOMJO,SZUZSY,XT4PMX,PKYLKN,8KBMUT,JBS7QX,TU3