This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright (c) 2015 Martin Donath | |
| * | |
| * 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: | |
| * |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "geojson": { | |
| "type": "Polygon", | |
| "coordinates": [ | |
| [ | |
| [-87.543978, 41.755152], | |
| [-87.543971, 41.755142], | |
| [-87.543961, 41.755132], | |
| [-87.54396, 41.755131], | |
| [-87.543959, 41.75513], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export EC2_HOME="/usr/local/Cellar/ec2-api-tools/1.6.13.0/libexec" | |
| export JAVA_HOME="$(/usr/libexec/java_home)" | |
| export ES_HOME="/usr/local/opt/elasticsearch" | |
| export GOPATH="/Users/dimroc/go_workspace" | |
| export PATH=$PATH:$GOPATH/bin | |
| #Docker | |
| export DOCKER_TLS_VERIFY=1 | |
| export DOCKER_HOST=tcp://192.168.59.103:2376 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| angular.module('ltApp'). | |
| directive('ngSingleSubmit', function () { | |
| return function (scope, element, attrs) { | |
| element.bind("submit", function (event) { | |
| element.find("input[type='submit']").prop('disabled', true); | |
| }); | |
| }; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module HasCsvUpload | |
| extend ActiveSupport::Concern | |
| EXCEL_DATE_REGEX = /\A\d{1,2}[\-\/]\d{1,2}[\-\/]\d{2}\Z/ | |
| included do | |
| has_attached_file :upload, | |
| storage: :s3, | |
| :path => 'csv_imports/:class/:id/:basename.:extension', | |
| s3_protocol: :https, | |
| s3_credentials: S3Credentials.to_hash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Admin::ImpersonationsController < AdminController | |
| respond_to :html | |
| def update | |
| current_user.update_attributes(impersonating_params) | |
| respond_with current_user, location: admin_organizations_path | |
| end | |
| def destroy | |
| current_user.update_attributes(impersonating_id: nil) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'tempfile' | |
| puts "Prettying #{ARGV[0]}" | |
| new_file = Tempfile.new('json-pretty') | |
| `cat #{ARGV[0]} | underscore print > #{new_file.path}` | |
| `mv #{new_file.path} #{ARGV[0]}` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # http://blog.mixcel.io/10-ways-to-get-mixpanel-right-the-first-time-yHNlbz-wbcZz7E7PWMXvRg | |
| class Analytic | |
| module Mixpanelable | |
| extend ActiveSupport::Concern | |
| private | |
| def mp_track(event_name, options = {}) | |
| mp_track_for_user(current_user, event_name, options) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var path = require('path'); | |
| var webpack = require('webpack'); | |
| var ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
| var stylusLoader = ExtractTextPlugin.extract( | |
| 'style-loader', | |
| 'css-loader?module&localIdentName=[name]__[local]___[hash:base64:5]' + | |
| '&disableStructuralMinification' + | |
| '!autoprefixer-loader!' + | |
| 'stylus-loader?paths=src/app/client/css/&import=./ctx' |