Skip to content

Instantly share code, notes, and snippets.

@mikklfr
mikklfr / gist:5607620
Created May 19, 2013 13:27
netsoul proto
Spécification (non officielle) du protocole Netsoul
Par Patrick MARIE <mycroft@virgaria.org>
Dernière modification: 20031029
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <mycroft@virgaria.org> wrote this file. As long as you retain this notice
* you can do whatever you want with this stuff. If we meet some day, and you
@mikklfr
mikklfr / main.xml
Created May 21, 2013 14:22
header_layout
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="51dp" android:layout_alignParentLeft="true"
android:layout_alignParentTop="true" android:id="@+id/header_layout">
sudo passenger start --ssl --ssl-certificate /etc/nginx/server.crt --ssl-certificate-key /etc/nginx/server.key --ssl-port 443 --port 80
[
{
"title": "RSS",
"id": 0,
"picture": http://www.epitech.eu/blogs/media/InnovAgro-Epitech-Innovation-Hub-Bordeaux-SciencesAgro-Montpellier-SupAgro-1.jpg,
"newArticles": 24
},
{
"link": http://www.7avoir.net/rss-articles.xml,
"title": "7 à voir",
{
"title": "RSS",
"description": "",
"id": 0,
"picture": "http://www.epitech.eu/blogs/media/InnovAgro-Epitech-Innovation-Hub-Bordeaux-SciencesAgro-Montpellier-SupAgro-1.jpg",
"articles": [
{
"id": 2,
"title": "Les Google Glass à la campagne",
"description": "\n <p><img alt=\"InnovAgro-Epitech-Innovation-Hub-Bordeaux-SciencesAgro-Montpellier-SupAgro-1.jpg\" src=\"http://www.epitech.eu/blogs/media/InnovAgro-Epitech-Innovation-Hub-Bordeaux-SciencesAgro-Montpellier-SupAgro-1.jpg\" class=\"mt-image-none\" height=\"224\" width=\"687\" /></p>\n<p></p>\n<p>Démarré hier, <a target=\"_blank\" href=\"https://twitter.com/InnovAgro14\">Innov'Agro 14</a> est le premier challenge croisant agronomie et nouvelles technologies, orienté sur l'usage que l'on pourrait faire des Google Glass dans le domaine de l'agriculture et de l'environnement. Il réunit pendant 4 jours à Bordeaux et Montpellier des étudiants d'Epitech de même que des élèves de Sciences Agro
{
"link": "http://www.7avoir.net/rss-articles.xml",
"title": "7 à voir",
"description": "A la découverte des technologies",
"id": 1,
"picture": "http://img.over-blog.com/100x100/2/89/64/51/3D/3D_1.jpg",
"articles": [
{
"id": 1,
"title": "Impressions sur la 3D",
@mikklfr
mikklfr / main.c
Last active July 7, 2022 10:44
PIC18f26j50 CCS USB HID
#include <18F26J50.h>
#fuses INTRC_PLL,PLL2,CPUDIV2
#use delay(clock=6M)
// or clock=8M
#define USB_CONFIG_HID_TX_SIZE 60
#define USB_CONFIG_HID_RX_SIZE 60
#include <pic18_usb.h>
@mikklfr
mikklfr / parse concat
Created December 9, 2014 11:27
parse concat
var parse = require("jsdoc-parse");
var concat = require('concat-stream')
var concatDocStream = concat(gotDoc);
function gotDoc(buffer) {
var doc = JSON.parse(buffer.toString());
console.log(
@mikklfr
mikklfr / gist:6c9086b34f1e5fdc97fc
Created December 10, 2014 09:26
Generate controller sample
(function () {
'use strict';
angular
.module('app')
.factory('${FACTORY_NAME}', ${FACTORY_NAME});
apiService.$inject = ['$http'];
function ${FACTORY_NAME}($http) {
@mikklfr
mikklfr / app custom
Created December 15, 2014 11:46
app custom
app.get('/auth/' + methodName, function (req, res, next) {
passport.authenticate(methodName, moduleAuth.scope, function (err, user, info) {
req.logIn(user, function (err) {
if (err) {
return next(err);
}
printUser(req, res);
// return res.redirect('/users/' + user.username);
});
})(req, res, next);