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
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@elken
elken / firefox.css
Created February 10, 2016 22:05
Firefox css
@namespace html url(http://www.w3.org/1999/xhtml);
@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/*
Author: Twily
Description: Minimal flat styled tabs for Australis
Compitability: Firefox Nightly v31.0a1 - v32.0a1 (Australis)
CSS Variables were introduced to Firefox in v29.0a1
Website: http://twily.info/
/*BEGIN Xbox One Controller Styling*/
.controller.custom{
/* background: url(http://mrmcpowned.com/gamepad/xbox-assets/base.svgz); */
height: 630px;
width: 750px;
margin-left: -375px;
margin-top: -285px;
}
.custom.white{
background: url(http://mrmcpowned.com/gamepad/xbox-assets/base-white.svgz);
@elken
elken / keybase.md
Created October 21, 2015 01:37
keybase.md

Keybase proof

I hereby claim:

  • I am elken on github.
  • I am elken (https://keybase.io/elken) on keybase.
  • I have a public key whose fingerprint is C952 92AC FA1C 2F57 279A 1476 9672 5700 2033 FDF3

To claim this, I am signing this object:

@elken
elken / The Technical Interview Cheat Sheet.md
Last active August 29, 2015 14:28 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@elken
elken / pre-commit
Created August 16, 2015 21:45
Pre-commit hook for clang-format
#!/bin/bash
# git pre-commit hook that runs an clang-format stylecheck.
# Features:
# - abort commit when commit does not comply with the style guidelines
# - create a patch of the proposed style changes
# modifications for clang-format by [email protected]
# This file is part of a set of unofficial pre-commit hooks available
# at github.
sed -i 's/.*\/.*/[&](http:\/\/github.com\/&)/g' README.md
@elken
elken / csgo.js
Last active August 29, 2015 14:19
CSGO Trade Counter
orig = "These are the items you will lose in the trade.";
var total = 0;
document.querySelector(".offerheader").childNodes.item(4).data = orig + " Total: " + total;
var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
var url = document.querySelector(".nextTarget").childNodes.item(1).innerHTML.split(" ").slice(2);
if (url.length != 0) {
total = Number(document.querySelector(".nextTarget").id.split("_").slice(2)) + 1;
document.querySelector(".offerheader").childNodes.item(4).data = orig + " Total: " + total;
}

Keybase proof

I hereby claim:

  • I am elken on github.
  • I am elken (https://keybase.io/elken) on keybase.
  • I have a public key whose fingerprint is 3596 4AFE EA35 7E44 B7D4 DE8A 636D C649 EC88 1CB6

To claim this, I am signing this object:

@elken
elken / cvimrc
Last active August 29, 2015 14:04
cvimrc
" Pinkie saver
map ; :
map : ;
" Misc
set nohud
set nosmoothscroll
set typelinkhints
let defaultengine = "duckduckgo"
let barposition = "bottom"
let locale = "uk"