Skip to content

Instantly share code, notes, and snippets.

🚀

Jan Antala janantala

🚀
Block or report user

Report or block janantala

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View rtls_session_tracks_byday.cql
CREATE TABLE rtls_session_tracks_byday (
operation_id text,
year_day text,
floor_id text,
start timestamp,
tag_id text,
positions_x list<float>,
positions_y list<float>,
positions_time list<timestamp>,
PRIMARY KEY ((operation_id, year_day, floor_id), start, tag_id)
View rtls_session_tracks_byday-sequence.cql
CREATE TABLE rtls_session_tracks_byday (
operation_id text,
year_day text,
floor_id text,
start timestamp,
tag_id text,
sequence_number int,
positions_x list<float>,
positions_y list<float>,
positions_time list<timestamp>,
View rtls_session_tracks_byday-frozen.cql
CREATE TABLE rtls_session_tracks_byday (
operation_id text,
year_day text,
floor_id text,
start timestamp,
tag_id text,
sequence_number int,
positions_x frozen<list<float>>,
positions_y frozen<list<float>>,
positions_time frozen<list<timestamp>>,
@janantala
janantala / install-quake3.sh
Created Sep 28, 2018
Install Quake 3: Arena on a mac
View install-quake3.sh
#!/bin/bash
# Install Quake 3: Arena on a mac
# Copyright (c) 2016 simonewebdesign
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
View sm-annotated.html
<script type="text/javascript">
(function () {
"use strict";
// once cached, the css file is stored on the client forever unless
// the URL below is changed. Any change will invalidate the cache
var css_href = './index_files/web-fonts.css';
// a simple event handler wrapper
function on(el, ev, callback) {
if (el.addEventListener) {
el.addEventListener(ev, callback, false);
View hngen.py
import urllib2
import re
import sys
from collections import defaultdict
from random import random
"""
PLEASE DO NOT RUN THIS QUOTED CODE FOR THE SAKE OF daemonology's SERVER, IT IS
NOT MY SERVER AND I FEEL BAD FOR ABUSING IT. JUST GET THE RESULTS OF THE
CRAWL HERE: http://pastebin.com/raw.php?i=nqpsnTtW AND SAVE THEM TO "archive.txt"
View ios-clear-btn.css
.clear-btn {
width: 19px;
height: 19px;
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAMAAACf4xmcAAAAMFBMVEWysrKysrKysrKysrKysrKysrKysrKysrKysrKysrL////39/fh4eG9vb23t7eysrKQDTJbAAAACnRSTlMBKlNxqbO70e7739UFWQAAAMFJREFUeNqNlMsOxSAIREs1AbVe/v9v78JMSn0kMytJTzqIwPWRpKxWimlOcp2U1IM07SHzSbaCor6RTta3+VZ2f6jiB5WboSIncNzKkB+yP0gHlRD/cJjCURdYPrX1F+qtPrCNP+u1Dg5UrYhSzKyBA9VCdhJtwOEICTzjx0jBNfvCLZRnpBa5SCE584WLFEpSfMOBggqJkabkFciCkOUlH4t7erKRuLYkm5wbGXIAuXHmlgO3asjFxa9BfqmSK/oPfl489V95hyMAAAAASUVORK5CYII=');
background-size: 100%;
cursor: pointer;
}
@janantala
janantala / gist:5875283
Created Jun 27, 2013
switching from ngRouter to UIRouter
View gist:5875283
https://github.com/joshdmiller/ng-boilerplate/commit/7bec0378cd6a62d90ee4af4b3f2d2186c5414968
View Engadget carousel
@janantala
janantala / iOS scaling fix
Created Nov 21, 2012
iOS scaling fix, iOS version < 6
View iOS scaling fix
<meta name="viewport" content="width=device-width initial-scale=1.0">
<script>
// iOS scaling fix
// By @mathias, @cheeaun and @jdalton
(function(e){var c="addEventListener",b="gesturestart",g="querySelectorAll",f=[1,1],d=g in e?e[g]("meta[name=viewport]"):[];function a(){d.content="width=device-width,minimum-scale="+f[0]+",maximum-scale="+f[1];e.removeEventListener(b,a,true)}if((d=d[d.length-1])&&c in e){a();f=[0.25,1.6];e[c](b,a,true)}}(document));
</script>
You can’t perform that action at this time.