Skip to content

Instantly share code, notes, and snippets.

View JulienTant's full-sized avatar

Julien Tant JulienTant

View GitHub Profile
Acacia Button
Acacia Door
Acacia Fence
Acacia Fence Gate
Acacia Leaves
Acacia Log
Acacia Planks
Acacia Pressure Plate
Acacia Sapling
Acacia Sign
Bringing machine 'reploc' up with 'virtualbox' provider...
==> reploc: Importing base box 'laravel/homestead'...
==> reploc: Matching MAC address for NAT networking...
==> reploc: Checking if box 'laravel/homestead' is up to date...
==> reploc: Setting the name of the VM: reploc
==> reploc: Clearing any previously set network interfaces...
==> reploc: Preparing network interfaces based on configuration...
reploc: Adapter 1: nat
reploc: Adapter 2: hostonly
==> reploc: Forwarding ports...
<?php
return [
'default-locale' => 'en'
'hideDefaultLocaleInURL' => false,
@JulienTant
JulienTant / gist:a94ee8201177f33c72dc
Created January 8, 2016 17:27
Verifying that +julientant is my blockchain ID. https://onename.com/julientant
Verifying that +julientant is my blockchain ID. https://onename.com/julientant
<template>
<pre class="{{ language ? 'language-' + language : '' }}">
<code >
<slot />
</code>
</pre>
</template>
<script type="text/ecmascript-6">
var hljs = require('highlight.js');
@JulienTant
JulienTant / routes.php
Created August 19, 2015 10:49
Blog - Soumission de formulaire de paiement
<?php
// ...
post('pay', function(\Illuminate\Http\Request $request, \Cartalyst\Stripe\Stripe $stripe) {
$charge = $stripe->charges()->create([
'amount' => $request->get('amount'),
'currency' => 'EUR',
'source' => [
@JulienTant
JulienTant / pay.blade.php
Last active August 29, 2015 14:27
Blog - vue du formulaire de paiement
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Page de démonstration de paiement par Craftyx">
<meta name="author" content="Craftyx">
<title>Page de démonstration de paiement par Craftyx</title>
@JulienTant
JulienTant / routes.php
Created August 19, 2015 10:18
Blog - Paiement avec Stripe et Laravel - route get
<?php
//...
get('pay', function() {
return view('pay');
});
//...
@JulienTant
JulienTant / .rubocop.yml
Created July 12, 2015 18:35
.rubocop.yml
AllCops:
Exclude:
- vendor/**/*
- bin/*
- lib/active_model/jobs/version.rb
RunRailsCops: true
Documentation:
Enabled: false