Skip to content

Instantly share code, notes, and snippets.

Avatar

Yoann Lecuyer ylecuyer

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