Skip to content

Instantly share code, notes, and snippets.

View rmagatti's full-sized avatar

Ronnie Magatti rmagatti

View GitHub Profile
import requests
import json
import subprocess
import os
digits = lambda string: int("".join(list(filter(str.isdigit, string))))
flatten = lambda l: [item for sublist in l for item in sublist]
CH_API_TOKEN = os.getenv("CH_API_TOKEN", None)
if not CH_API_TOKEN:
import requests
import json
import os
import sys
url = "https://sentry.io/api/0/projects/neo-financial/android/events/"
AUTH_TOKEN = os.getenv('SENTRY_TOKEN', None)
if not AUTH_TOKEN:
@rmagatti
rmagatti / .rubocop.yml
Created February 15, 2018 13:38
Rubocop Config
Rails:
Enabled: true
# Commonly used screens these days easily fit more than 80 characters.
Metrics/LineLength:
Max: 120
# Too short methods lead to extraction of single-use methods, which can make
# the code easier to read (by naming things), but can also clutter the class
Metrics/MethodLength:
@rmagatti
rmagatti / install_kivy_osx.sh
Last active August 27, 2015 04:22 — forked from garyjohnson/install_kivy_1.10.0_macos_python3
Install Kivy 1.9.1 on OS X for Python2.7 and Python3
#!/bin/bash
#install gstreamer
wget http://gstreamer.freedesktop.org/data/pkg/osx/1.0.10/gstreamer-1.0-1.0.10-universal-packages.dmg
hdiutil mount gstreamer-1.0-1.0.10-universal-packages.dmg -mountpoint /Volumes/gstreamer
find /Volumes/gstreamer -maxdepth 1 -type f -exec sudo installer -pkg {} -target / \;
hdiutil unmount /Volumes/gstreamer/
rm gstreamer-1.0-1.0.10-universal-packages.dmg
#install gstreamer dev