Skip to content

Instantly share code, notes, and snippets.

View jfridye's full-sized avatar

Joseph Fridye jfridye

View GitHub Profile
class X {
@Transactional
foo() {
}
@Transactional
bar() {
// SQL stuff
}
/**
* Handles converting a magnitude from one unit to another.
* @module convert
*/
const CONVERSION_TABLE = {
m: { ft: 3.2808 }, // elevation
km: { mi: .62137 }, // distance
kcal: { kj: 4.1868 }, // energy
kph: { mph: .62137 }, // speed
@jfridye
jfridye / SassMeister-input.scss
Last active August 29, 2015 14:21
Generated by SassMeister.com.
// ----
// libsass (v3.2.4)
// ----
.button, .btn-template {
color: red;
}
.one div .button {
@extend .btn-template;
@jfridye
jfridye / SassMeister-input-HTML.jade
Created May 20, 2015 15:04
Generated by SassMeister.com.
p.alert-info These leaderboards are a preview of our courses feature. Points are not final and are subject to change before our official launch.
p.alert-warn These leaderboards are a preview of our courses feature. Points are not final and are subject to change before our official launch.
p.alert-success These leaderboards are a preview of our courses feature. Points are not final and are subject to change before our official launch.
p.alert-error These leaderboards are a preview of our courses feature.
b Points are not final and are subject to change before our official launch.
======================================================================
00:37:48.830 ERROR [0.209s]: test_single_story_does_not_exist (mmf.member.profile.tests.ViewsTest)
00:37:48.830 ----------------------------------------------------------------------
00:37:48.831 Traceback (most recent call last):
00:37:48.831 File "/panama/mmf/member/profile/tests.py", line 117, in test_single_story_does_not_exist
00:37:48.832 'feed_item_id': '0-0000000000'}))
00:37:48.832 File "/usr/lib/python2.6/site-packages/django/test/client.py", line 473, in get
00:37:48.832 response = super(Client, self).get(path, data=data, **extra)
00:37:48.833 File "/usr/lib/python2.6/site-packages/django/test/client.py", line 280, in get
00:37:48.833 return self.request(**r)
@jfridye
jfridye / mmf css stats
Last active August 29, 2015 14:17
css stats
{
"total-stylesheets": 75,
"total-stylesheet-size": 738504,
"total-rules": 6391,
"total-selectors": 9784,
"total-identifiers": 24217,
"total-declarations": 19636,
"selectors-per-rule": 1.5309028321076514,
"identifiers-per-selector": 2.475163532297629,
"specificity-per-selector": 43.80488552739166,
@jfridye
jfridye / gist:3db6ce36649bd1d0f981
Created March 18, 2015 13:31
front-end technologies
linting:
- eslint
dep mgmt:
- npm
- bower
automation:
- webpack/browserify module loader
- gulp and/or npm scripts (automation)
- ES6/babel.js (forward-facing js)
css:
==================================================================================== FAILURES =====================================================================================
_____________________________________________________________________ TestGeoIPMiddleware.test_debug_override _____________________________________________________________________
args = (<test_geoip_middleware.TestGeoIPMiddleware testMethod=test_debug_override>,), kwargs = {}
@wraps(test_func)
def inner(*args, **kwargs):
with self:
> return test_func(*args, **kwargs)
{
"result": {
"status": 1,
"output": {
"geocode": {
"raw": {
"latitude": "37.09024",
"longitude": "-95.712891",
"address": "",
"city": "",
{
"result": {
"status": 1,
"output": {
"geocode": {
"raw": {
"latitude": "37.09024",
"longitude": "-95.712891",
"address": "",
"city": "",