Skip to content

Instantly share code, notes, and snippets.

View Frulko's full-sized avatar
🦁

Guillaume Dumoulin Frulko

🦁
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Title</title>
<link href="css/some-stylesheet.css" rel="stylesheet"/>
<script src="scripts/some-script.js"/>
<script>
</script>
</head>
@Frulko
Frulko / claroline-casper.js
Last active December 25, 2015 10:38
CasperJS script to download all documents of courses on Claroline. - Gobelins 2013
var clarolineURL = 'http://xxxxxxxxxxxx'; //URL of your Claroline site
var links = [];
var courses = [];
var downloadFolder = './documents/';
var i = -1;
function getDocumentsLink() {
var links = document.querySelectorAll("table.claroTable tbody tr a.item");
return Array.prototype.map.call(links, function(e) {
var link = [];
.clear{
clear:both;
}
.clearfix:before,.clearfix:after{
content:".";
display:block;
height:0;
overflow:hidden
@Frulko
Frulko / gist:e652503e740638374202
Created August 6, 2014 08:22
[CSS] Sprite selector with prefix
[class^="sg-"], [class*="sg-"] {
background-image: url('sprite.png');
background-color: transparent;
background-repeat: no-repeat;
}
- sudo npm install -g phantomjs@1.9.15
- sudo npm install -g casperjs
@Frulko
Frulko / gist:a17ef9bcbc08f955d1e3
Last active August 29, 2015 14:15
Front-end development - Ressources & tips
@Frulko
Frulko / README.md
Last active August 29, 2015 14:15
Debian install web server

#Installation serveur Debian 7

Installation Serveur Apache 2 + PHP5

apt-get install apache2 php5 apache2-utils php5-curl php5-gd curl unzip

PHP Settings php.ini

@Frulko
Frulko / compare.js
Last active August 29, 2015 14:16 — forked from alexey-bass/compare.js
/**
* Simply compares two string version values.
*
* Example:
* versionCompare('1.1', '1.2') => -1
* versionCompare('1.1', '1.1') => 0
* versionCompare('1.2', '1.1') => 1
* versionCompare('2.23.3', '2.22.3') => 1
*
* Returns:

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser