Skip to content

Instantly share code, notes, and snippets.

View absynthe's full-sized avatar
👾

Anamaria Todor absynthe

👾
View GitHub Profile
@absynthe
absynthe / slack_member_dictionary.py
Created October 22, 2018 11:15
Iterates over all channels in a slack workspace and builds a dictionary of clientIDs to channel list.
import requests
import sys
"""
Iterates over all channels in a slack workspace and builds a dictionary of clientIDs to channel list.
"""
member_dictionary = dict()
# get a token from https://api.slack.com/docs/oauth-test-tokens
@absynthe
absynthe / gist:caaac5525d3f4fc18399
Created June 23, 2015 13:57
Redirection iFrame
<?php
/*
Plugin Name: Redirection iFrame
Description: iframe redirect for Wordpress. Accepts a 'key' parameter which it then redirects to the new URL.
Usage: [myiframe width=640 height=480]http://url.to.redirect.to[/myiframe]
Version: 1.0
Author: Ana Todor
Author URI: http://www.ana-todor.ro
License: GPL2
*/
@absynthe
absynthe / events2csv
Created July 21, 2014 13:13
Script for splitting a raw GameAnalytics merged data file into event categories files
#!/usr/bin/python
import os.path
import csv
import cjson
import sys
import gzip
import ntpath
def write_event(prefix, event_type, headers, event):
data = prepare_data(headers, event)
CREATE TABLE itunes_tags (
game_id integer,
itunes_id varchar(256),
name varchar(256),
tags varchar(512),
primary key(itunes_id)
);
insert into itunes_tags VALUES(4567 , 568438534, 'Stupid Zombies 2 Free' , 'Games,Entertainment,Action,Arcade');
GameAnalytics.init(gameKey : String, secretKey: String, buildName: String, userID:String, sessionID: String);