Skip to content

Instantly share code, notes, and snippets.

View lgiraudel's full-sized avatar

Loïc Giraudel lgiraudel

  • Grenoble, France
View GitHub Profile
#!/bin/bash
PROGNAME=${0##*/}
INPUT=''
QUIET='0'
NOSTATS='0'
max_input_size=0
max_output_size=0
usage()
@lgiraudel
lgiraudel / index.html
Last active August 29, 2015 14:07
AngularJS - Test a simple expression
<!DOCTYPE html>
<!-- // source http://jsbin.com/zirivocogeji/1 -->
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jasmine/2.0.0/jasmine.js"></script>
<script src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/42401/jasmine-html_1.js"></script>
<script src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/42401/boot.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular-mocks.js"></script>
<link type="text/css" rel="stylesheet" href="https://s3-us-west-2.amazonaws.com/s.cdpn.io/42401/jasmine_1.css"></link>
@lgiraudel
lgiraudel / index.html
Created October 8, 2014 12:26
AngularJS - Test simple directive
<!DOCTYPE html>
<!-- // source http://jsbin.com/gazax/1 -->
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jasmine/2.0.0/jasmine.js"></script>
<script src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/42401/jasmine-html_1.js"></script>
<script src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/42401/boot.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular-mocks.js"></script>
<link type="text/css" rel="stylesheet" href="https://s3-us-west-2.amazonaws.com/s.cdpn.io/42401/jasmine_1.css"></link>
@lgiraudel
lgiraudel / index.html
Created October 8, 2014 13:01
AngularJS - Test directive with method
<!DOCTYPE html>
<!-- // source http://jsbin.com/cifini/1 -->
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jasmine/2.0.0/jasmine.js"></script>
<script src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/42401/jasmine-html_1.js"></script>
<script src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/42401/boot.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular-mocks.js"></script>
<script src="http://cdn.jsdelivr.net/jquery/2.1.1/jquery.js"></script>
@lgiraudel
lgiraudel / commit-generator.js
Last active April 7, 2017 16:16
Commit Generator
#!/usr/bin/env node
const fs = require('fs');
const child_process = require('child_process');
// Fonction pour créer un commit sans fichier modifié
const createCommit = (msg) => {
child_process.execSync(`git commit -am "${msg}" --allow-empty`);
}
const bool = require('./true-generator.js');
console.log(bool);