Skip to content

Instantly share code, notes, and snippets.

View mr21's full-sized avatar
💭
"What I produce is 99.1% pure" - Walter White

Thomas Tortorini mr21

💭
"What I produce is 99.1% pure" - Walter White
View GitHub Profile
@mr21
mr21 / malloc.c
Last active August 29, 2015 13:56
Les choses un peu cachees de malloc / realloc
/*
Que renvoyer lors d'un : malloc(0); ?
La regle dit que tout retour de malloc doit pouvoir aller dans free et realloc.
Du coup pour simplifier il est possible de renvoyer NULL.
*/
free(NULL); /* est valide et ne fait rien. */
/*
Le realloc d'un pointeur NULL est equivalent a un malloc,
ainsi ces deux lignes sont identiques:
/*
This little code move the speeder on the 404 error page of GitHub.
For a demo :
* Copy the code below with Ctrl+C.
* Find a 404 error page (like this one: "https://github.com/@").
* Paste the code in the address bar.
* Add "javascript:" at the beginning of the code.
* Press enter, enjoy! :D
--
I don't use the argument (number) "progress" of jQuery in the progress callback,
/* Declaration d'une variable... */
/* ...de type: */ int /* "int" pour "integer". */
/* Cette variable pouvant varier, */
/* aura comme nom: */ i /* "i" comme "iteration". */
/* Pour finir cette premiere etape... */
/* ...nous devons terminer cette instruction... */
/* ...a l'aide d'un: */ ; /* ";" (point-virgule). */
i /* La variable precedement... */
/* declare en debut de fichier... */
Schoolboy Q - Man of the year
G-easy - Far Alone (feat. E-40 & Jay Ant)
Chris Brown Ft. Lil Wayne and Tyga - Loyal
Wiz Khalifa - LetR
Nicki Minaj - Pills N Potions
Iamsu - I love my squad
Ab-Soul - Tree of Life
Wiz Khalifa - So High (feat. Ghost Loft)
Trey Songz - Nana
T-Pain feat. B.o.B - Up Down (Do This All Day)
#include <stdio.h>
int main(void)
{
#define _ goto
#define __ putchar
#define ___ puts
static o;_ _XD;_________:__(0x20);_
_______;________:__(0x65);_ __________;_____:
__(0144);_ O_o;______:__(0162);
_ __________;O_o:___(&"!"[0]);
// `yourElement` can be a NodeElement or a jQuery object as you want.
var selection = $.plugin_selection(yourElement)
// `.applyThis` is useful if you want to specify the `this` for all your callbacks.
// By default it's `window`.
.applyThis(object)
.onElementsAdded(function(jq_elems) {
// This callback is called when some elements are selected.
// Here, `jq_elems` is a jQuery object who contain the new elements selected.
// This object doesn't contain only one element if the user use the shift key.
// In this callback the `this` pointer is `window` by default
// `yourElement` can be a NodeElement or a jQuery object as you want.
var dragndrop = $.plugin_dragndrop(yourElement);
// If you have included the `jquery-selection` plugin
// you can have access to it by calling this:
var selection = dragndrop.selection();
dragndrop
// By default the duration is set to 200ms but you can specify a new value.
.duration(150)
<div id="parent">
<div class="jqtabs" id="tabs_A">
<div class="jqtabs-tabs">
<div class="jqtabs-tab">A
<a class="jqtabs-btnCloseTab" href="#"><!--
The plugin allow you to put an element with the class:
`jqtabs-btnCloseTab` in any `jqtabs-tab` element who when
it's clicked it's will call .removeTab() to remove
this tab and its content.
--></a>
@mr21
mr21 / .bashrc
Last active August 29, 2015 14:06
#!/bin/bash
export PS1="\[\e[00;32m\]\w>\[\e[0m\]"
source ~/GitHub/GitFast/gitfast.sh
eval `ssh-agent -s`
ssh-add ~/.ssh/id_rsa
alias ls='ls --color=auto'

Hip-Hop Source Vol.3

1 TeeFlii - 24 Hours ft. 2 Chainz
2 Drake - Worst Behaviour
3 Yelawolf - Till Its Gone
4 G-Eazy - Been On
5 Rich Homie Quan - Blah Blah Blah
6 The Game - Don't Shoot ft. Rick Ross, 2 Chainz, Diddy, Fabolous, Wale, DJ Khaled, Swizz Beatz, Yo Gotti, Currensy, Problem, King Pharaoh, TGT
7 Rae Sremmurd - No Flex Zone