Skip to content

Instantly share code, notes, and snippets.

View elken's full-sized avatar
🚀
Blazing fast

Ellis Kenyő elken

🚀
Blazing fast
View GitHub Profile
<Themes>
<Theme Name="Gruvbox" GUID="{ec20e69b-8bbc-4621-ae7f-3e07cb219cf5}">
<Category Name="ACDCOverview" GUID="{c8887ac6-3c60-4209-9d69-8f4c12a60044}">
<Color Name="Body">
<Background Type="CT_RAW" Source="FF252526" />
<Foreground Type="CT_RAW" Source="FFF1F1F1" />
</Color>
<Color Name="H1">
<Foreground Type="CT_RAW" Source="FF7E6693" />
</Color>
[{:name "Game",
:slug "game",
:status "online",
:incidents [{:id 4655,
:active true,
:created_at "2017-06-12T20:07:31.451Z",
:updates [{:id "593ef483aa1d240100fc7144",
:author "",
:content "On 14/06/17, starting at 03:30 UK Time (02:30 UTC), ranked queues will be disabled in preparation for patch 7.12. At 05:00 UK Time (04:00 UTC), the servers will be shut down and all games currently in progress will end in a draw and stats will not be recorded. We estimate the battlegrounds will be unavailable for 3 hours.",
:severity "info",
package daytradertasks;
import daytrader.datamodel.BarPointGraph;
import daytrader.api.DaytraderController;
import daytrader.datamodel.Putup;
import java.util.concurrent.Callable;
/**
@elken
elken / safe.java
Created May 24, 2017 18:32
Line 338 to 343 shows implementation, 287 256 and 225 for the individual functions
package daytrader.api;
import com.ib.client.Contract;
import com.ib.client.Types;
import com.ib.controller.ApiConnection;
import com.ib.controller.Bar;
import com.ib.controller.Formats;
import daytrader.EntityHandler;
import daytrader.api.exceptions.TWSException;
import daytrader.api.exceptions.login.AlreadyLoggedInException;
@elken
elken / safe.java
Created May 24, 2017 18:32
Line 338 to 343 shows implementation, 287 256 and 225 for the individual functions
package daytrader.api;
import com.ib.client.Contract;
import com.ib.client.Types;
import com.ib.controller.ApiConnection;
import com.ib.controller.Bar;
import com.ib.controller.Formats;
import daytrader.EntityHandler;
import daytrader.api.exceptions.TWSException;
import daytrader.api.exceptions.login.AlreadyLoggedInException;
package daytrader;
import com.ib.client.Contract;
import daytrader.cacheTypes.Request;
import daytrader.datamodel.BarPoint;
import daytrader.datamodel.BarPointGraph;
import daytrader.hibernate.BarEntity;
import daytrader.hibernate.ContractEntity;
import daytrader.hibernate.RequestEntity;
import daytrader.hibernate.SessionHelper;
-- bab/BaB = Beam and Bomb
-- sam/SaM = Suit and Missiles
poses = {
[0x0] = "running",
[0x1] = "standing",
[0x2] = "turning around",
[0x3] = "shooting",
[0x4] = "ducking",
[0x5] = "turning and ducking",
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
FileInstall, VirtualDesktopAccessor.dll, %A_ScriptDir%\VirtualDesktopAccessor.dll, 1
SetTitleMatchMode 2
DetectHiddenWindows, On
hVirtualDesktopAccessor := DllCall("LoadLibrary", Str, "VirtualDesktopAccessor.dll", "Ptr")
GoToDesktopNumberProc := DllCall("GetProcAddress", Ptr, hVirtualDesktopAccessor, AStr, "GoToDesktopNumber", "Ptr")
@a=split(/\s+/,<>);while(1){$a=@a[0]<=>@a[2];$b=@a[1]<=>@a[3];print((N,'',S)[$b+1].(W,'',E)[$a+1].$/);@a[2]+=$a;@a[3]+=$b;}
@elken
elken / 0_reuse_code.js
Created May 10, 2016 20:55
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