Skip to content

Instantly share code, notes, and snippets.

View ylecuyer's full-sized avatar

Yoann Lecuyer ylecuyer

View GitHub Profile
//
// LocationRow.swift
// bicimapa
//
// Created by Yoann Lecuyer on 16/01/16.
// Copyright © 2016 Bicimapa. All rights reserved.
//
import UIKit
import Eureka
//
// LocationRow.swift
// bicimapa
//
// Created by Yoann Lecuyer on 16/01/16.
// Copyright © 2016 Bicimapa. All rights reserved.
//
import UIKit
import Eureka
@ylecuyer
ylecuyer / strava.rb
Created February 15, 2016 23:57
strava onmove200
require 'bundler'
Bundler.require(:default)
include GPX
class OMH < BinData::Record
endian :little
uint32 :distance
uint16 :duration
### 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:
@ylecuyer
ylecuyer / Dockerfile
Last active July 9, 2017 17:09
Rails Dockerfile
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
pipeline {
stages {
stage('Checkout') {
steps {
git url: 'https://github.com/ylecuyer/attendize', branch: 'master'
}
}
}
agent { dockerfile true }
}
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