View gist:6d22038ea174e37b27225093d341c600
This file contains 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 Twitter::UsersController < ApplicationController | |
def authorize | |
request_token = twitter_consumer.get_request_token(:oauth_callback => oauth_callback) | |
save_twitter_request_token(request_token) | |
redirect_to request_token.authorize_url(:oauth_callback => oauth_callback) | |
end | |
def callback | |
request_token = load_twitter_request_token |
View Pipeline
This file contains 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
pipeline { | |
stages { | |
stage('Checkout') { | |
steps { | |
git url: 'https://github.com/ylecuyer/attendize', branch: 'master' | |
} | |
} | |
} | |
agent { dockerfile true } | |
} |
View Dockerfile
This file contains 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
FROM ruby:2.4.0 | |
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs && apt-get clean | |
WORKDIR /usr/src/app | |
ENV BUNDLE_PATH /ruby_gems | |
ENV GEM_PATH /ruby_gems | |
ENV GEM_HOME /ruby_gems |
View gist:5a73c8b8b3d84ee7c354bbc3a86b30e4
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am ylecuyer on github. | |
* I am ylecuyer (https://keybase.io/ylecuyer) on keybase. | |
* I have a public key whose fingerprint is 5170 326B 14AD 446B 7F10 A478 3D85 320F 6651 2A24 | |
To claim this, I am signing this object: |
View strava.rb
This file contains 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 'bundler' | |
Bundler.require(:default) | |
include GPX | |
class OMH < BinData::Record | |
endian :little | |
uint32 :distance | |
uint16 :duration |
View LocationRowEurekaGoogleMaps.swift
This file contains 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
// | |
// LocationRow.swift | |
// bicimapa | |
// | |
// Created by Yoann Lecuyer on 16/01/16. | |
// Copyright © 2016 Bicimapa. All rights reserved. | |
// | |
import UIKit | |
import Eureka |
View LocationRowEurekaGoogleMaps.swift
This file contains 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
// | |
// LocationRow.swift | |
// bicimapa | |
// | |
// Created by Yoann Lecuyer on 16/01/16. | |
// Copyright © 2016 Bicimapa. All rights reserved. | |
// | |
import UIKit | |
import Eureka |