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
import Auth0Lock from 'auth0-lock'; | |
// import auth0 from 'auth0-js'; | |
import decode from 'jwt-decode'; | |
// import { browserHistory } from 'react-router'; | |
import history from './history'; | |
export default class Auth { | |
lock = new Auth0Lock('GNx0zoCnEmuSz5T3JylON5hxEhMSe9Ki', 'artmarqet.auth0.com', { |
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
version: '3' | |
services: | |
# proxy: | |
# image: jwilder/nginx-proxy:latest | |
# ports: | |
# - "80:3000" | |
# volumes: | |
# - "/var/run/docker.sock:/tmp/docker.sock" | |
# | |
# https://github.com/docker/machine/issues/3982 |
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
app | |
.factory('components', [ | |
'$http', | |
'SERVER', | |
function($http, SERVER) { | |
var o = { | |
component: {}, | |
components: [], | |
componentExercises: [] |
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('myapp.directives', []) | |
.directive('slick-carousel', '$eval', function($eval) { | |
return { | |
restrict: 'A', | |
link: function(scope, element, attrs) { | |
angular.element(element).slick(scope.$eval(attrs.directiveName)); | |
} | |
}; | |
}); |
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
// Ionic Starter App | |
// angular.module is a global place for creating, registering and retrieving Angular modules | |
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html) | |
// the 2nd parameter is an array of 'requires' | |
angular.module('myapp', ['ionic', 'myapp.controllers']) | |
.run(function($ionicPlatform) { | |
$ionicPlatform.ready(function() { |
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
require File.expand_path('../boot', __FILE__) | |
require 'rails/all' | |
# Require the gems listed in Gemfile, including any gems | |
# you've limited to :test, :development, or :production. | |
Bundler.require(*Rails.groups) | |
module Artspiracy | |
class Application < Rails::Application |
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
Rails.application.configure do | |
config.lograge.enabled = true | |
# add time to lograge | |
config.lograge.custom_options = lambda do |event| | |
{ :time => event.time, :user => (user_signed_in? ? "User##{current_user.id}" : "Guest") } | |
end | |
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
new models.User().botStatusAccepted(bot_db.get('id')).fetchAll().then(function(users){ | |
callibration_loop(users.toArray()); | |
}).catch(function(e) { console.error(e); }); | |
var userCounter = 0, | |
callibration_loop = function(users) { | |
var user = users[userCounter++]; | |
if(bot.friends[user.get('steam_id')] && bot.friends[user.get('steam_id')] == 3) { | |
process_user_mmr(user); |
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
events.js:85 | |
throw er; // Unhandled 'error' event | |
^ | |
Error: Logon fail: 65 | |
at SteamClient.handlers.(anonymous function) (/Users/dotwired/Projects/dotanaut/lib/node/dota2_bot/node_modules/steam/lib/handlers/user.js:182:11) | |
at SteamClient._netMsgReceived (/Users/dotwired/Projects/dotanaut/lib/node/dota2_bot/node_modules/steam/lib/steam_client.js:123:26) | |
at SteamClient.handlers.(anonymous function) (/Users/dotwired/Projects/dotanaut/lib/node/dota2_bot/node_modules/steam/lib/steam_client.js:209:10) | |
at SteamClient._netMsgReceived (/Users/dotwired/Projects/dotanaut/lib/node/dota2_bot/node_modules/steam/lib/steam_client.js:123:26) | |
at Connection.emit (events.js:107:17) | |
at Connection._readPacket (/Users/dotwired/Projects/dotanaut/lib/node/dota2_bot/node_modules/steam/lib/connection.js:50:8) |
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
# lib/faraday/steam_api_exceptions.rb | |
class SteamApiExceptions < Faraday::Middleware | |
def call(env) | |
begin | |
@app.call(env) | |
raise "this will be actually entered if everything is correct" | |
rescue => e | |
raise "this should be called, shouldn't it?" | |
end | |
end |