Skip to content

Instantly share code, notes, and snippets.

View lifely's full-sized avatar

Julien Di Marco lifely

View GitHub Profile
@lifely
lifely / Astekgnl
Created December 7, 2011 13:10
soutenance-gnl
#! /bin/bash
cd /tmp;
svn co svn+ssh://kscm@koala-rendus.epitech.net/getnextline-2015ed-2014s-$USER $USER-gnl;
cd $USER-gnl;
cp -r /u/all/ait-ba_m/public/MOULINETTE_GNL/moulinette_get_next_line/ .;
cp get_next_line.[ch] moulinette_get_next_line/;
./moulinette.sh;
@lifely
lifely / astek.gnl
Created December 7, 2011 13:31
soutenance-gnl
#! /bin/bash
cd /tmp;
svn co svn+ssh://kscm@koala-rendus.epitech.net/getnextline-2015ed-2014s-$USER $USER-gnl;
cd $USER-gnl;
cp -r /u/all/ait-ba_m/public/MOULINETTE_GNL/moulinette_get_next_line/ .;
cp get_next_line.[ch] moulinette_get_next_line/;
cd moulinette_get_next_line/
./moulinette.sh;
@lifely
lifely / this_hell.hpp
Created December 17, 2011 20:01
This Hell
#ifndef FUNCTION_HPP_
# define FUNCTION_HPP_
#include "../etape1/FunctionSignature.hpp"
#include <iostream>
template <typename T>
class Function
{
public:
@lifely
lifely / astek.malloc
Created February 8, 2012 12:08
[Astek] Malloc 2015
#! /usr/bin/env bash
cd /tmp;
svn co svn+ssh://kscm@koala-rendus.epitech.net/malloc-2015-2014s-$USER $USER-malloc;
cd $USER-malloc;
tar xf /u/all/plassi_y/public/Moul_malloc_sout.tar;
make;
make;
export LD_LIBRARY_PATH=.
export LD_PRELOAD=libmy_malloc.so
@lifely
lifely / gist:f69b9a954f6e6153860d
Created May 5, 2014 08:41
Phone Number Regex
^(?:(?:\(?(?:00|\+)([1-4]\d\d|[1-9]\d?)\)?)?[\-\.\ \\\/]?)?((?:\(?\d{1,}\)?[\-\.\ \\\/]?){0,})(?:[\-\.\ \\\/]?(?:#|ext\.?|extension|x)[\-\.\ \\\/]?(\d+))?$
@lifely
lifely / linear-obj-c
Last active August 29, 2015 14:15
Fail or Continue - Paradigme
NSArray *developerList = nil;
if (!responseObject || !(developerList = [responseObject objectForKey:@"list"]) ||
![developerList isKindOfClass:[NSArray class]])
return ; // call error/failure block
NSArray *developers = [SFService prepareObjectFromResponse:developerList forObjectClass:[SFDeveloper class]];
NSLog(@"[SUCCESS][SFService-api] Action /trombi/ : \n%@", developers);
@lifely
lifely / StringFromClass
Created March 7, 2015 13:58
NSStringFromClass Swift Workaround
func NSStringFromAnyClass(aClass: AnyClass!) -> String! {
return NSStringFromClass(aClass).componentsSeparatedByString(".").last!
}
@lifely
lifely / UIStaticTableViewController.swift
Last active August 29, 2015 14:22
UIStaticTableViewController
//
// HamakDynamicController.swift
// Hamak
//
// Created by Julien Di Marco on 03/06/15.
// Copyright (c) 2015 SoLocal. All rights reserved.
//
import Foundation
[Quote-selection] asker selected a quote a should pre-pay now:
'Optional(https://stage-secure-gateway.hipay-tpp.com/payment/web/pay/60d1a9f1-4b24-4a82-b3fd-2675842fed2d)'
[deposit-payment] webView:decidePolicyForNavigationAction: https://stage-secure-gateway.hipay-tpp.com/payment/web/pay/60d1a9f1-4b24-4a82-b3fd-2675842fed2d
[deposit-payment] webView:decidePolicyForNavigationResponse:
[deposit-payment] webView:decidePolicyForNavigationAction: https://test-psp.hipay.com/HiMediaPSP-war/Token.xhtml?p=MXPrDJr9zudQcQnVbDYKDie5a%2BwfqIzjiRZCyLuJLSu6vQH1DmuAPw%2BhxIZqQXcVwqFBBZwy7aX5MbIkhRRCl7qDwHpCaDK8XNJz360oZqRjAf3ptNlOZzMGOELwkMFpuHmh1p%2FXmgU5KDgrLLE8929lg%2F%2BCt2ralrYnmlq78D7sMyMpmg3CsrDxakCy6ENzKjQ8uLCwcYb0tHcwnhBrOIJoRVdk5PO4pKUcEikFMSc7muov0oPBBDawMfwf4uDfaMepy2AidMnQyktamVyj0QMW0p4UvP9SZddLYGVJPfRgYfOtkeYdfrz7wjQzeQscuutGBK8fzwv99WodEvrDMgmxMt4uGyUMRDQKibRcz8lQcQnVbDYKDie5a%2BwfqIzjbGfvzeeQE4x3QU8p2qlOrJws9K%2BN5R5kKkmbE3ibkjE%3D
[deposit-payment] webView:decidePolicyForNavigationResponse:
[deposit-payme
//
// BitwiseOptions.swift
//
// Created by Gregory Higley on 11/24/14.
// Copyright (c) 2014 Prosumma LLC. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell