Skip to content

Instantly share code, notes, and snippets.

View kro12's full-sized avatar
💭
Abiding 🍸

Cronin O' Mahoney kro12

💭
Abiding 🍸
View GitHub Profile
@kro12
kro12 / .gitconfig
Created October 18, 2018 19:52
Git Config update for Tower
[user]
name = Kro
email = cronin.omahoney@stitcherads.com
[core]
editor = nano
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
@kro12
kro12 / configuration.txt
Created October 18, 2018 19:51
VSC setup for Tower
====== CompareTools.plist ============
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>ApplicationIdentifier</key>
<string>com.microsoft.VSCode</string>
<key>ApplicationName</key>
@kro12
kro12 / tamper_monkey_github_code_monkey.js
Created July 23, 2018 22:07
Tampermonkey Github monkey gist
"use strict";
// ==UserScript==
// @name Code Monkey
// @description Show code monkey image at random position over Github file listings.
// @author kr012
// @icon https://avatars0.githubusercontent.com/u/1465154?s=460&v=4
// @include *github.com*
// @grant none
// ==/UserScript==
{
"name": "DPA 3 DAY VIEW EXCLUDING 3 DAY PURCHASE - EXC NO CHECKIN DATE",
"description": "",
"product_set_id": 261329514218675
"inclusions": [
{
"retention_seconds": 259200,
"rule": {
"event": {
"eq": "ViewContent"
var count, elem, i, input, len;
input = [
{
"creative_carousel_image": null,
"creative_carousel_name": null,
"creative_carousel_description": null,
"creative_carousel_link": null,
"creative_carousel_message": null,
"creative_dpa_product_name": "asdasd",
def set_current_plan(subscription, products)
plans = subscription[:ratePlans]
if plans.length == 1 # if only one plan then it's the active plan
current_plan = plans[0]
current_product_name = current_plan[:productName].downcase
else
current_plan = plans.select{|plan| plan[:lastChangeType].downcase == "add" } # select the plan which was added rather than removed
current_product_name = current_plan[0][:productName].downcase
end
subscription_period = plans[0][:ratePlanName].downcase
@kro12
kro12 / gist:6777737
Created October 1, 2013 12:32
Add Git diff highlighting to Sublime Text 2
###############################################################################
# Add Git diff highlighting to Sublime Text 2 #
# Add the following to your chosen theme file (.tmTheme) before closing array #
###############################################################################
<dict>
<key>name</key>
<string>diff.header</string>
<key>scope</key>
<string>meta.diff, meta.diff.header</string>
@kro12
kro12 / fql_android_native_browser
Created March 2, 2013 14:29
fql Android native browser
FB.api( { method : 'fql.query', query : friend_query}... <<-- original format - FAILING
FB.api('fql', { q: friend_query }... <<-- altered format - WORKING