Skip to content

Instantly share code, notes, and snippets.

View AmauryCarrade's full-sized avatar
🍊
I don't hate you

Amaury Carrade AmauryCarrade

🍊
I don't hate you
View GitHub Profile
@notslang
notslang / twitter-verified-icon.svg
Last active March 22, 2023 14:01
The blue verified icon, extracted from Twitter's icon font & resized using Inkscape
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Zulko
Zulko / cubes_pyode_vapory.py
Last active December 27, 2023 12:29
3D cubes animation with PyODE and Vapory
"""
Physics simulation with PyODE followed by a (basic) rendering with Vapory
See the result here: http://i.imgur.com/TdhxwGz.gifv
Zulko 2014
This script is placed in the Public Domain (Licence Creative Commons 0)
"""
@firm1
firm1 / scoring.py
Created November 12, 2014 16:12
fonctions de scoring d'un sujet de forum
from zds.forum.models import TopicFollowed, Topic, Post
from zds.utils.models import CommentLike, CommentDislike
unit_mark_activity = {
"follow": { # points lié au suivi du topic
"site": 1, # suivre un topic sur le site
"email": 2, # suivre un topic par email
}
"post" : { # points liés a tous les messages sauf au premier post
"new": 2, # nouveau message
<?php
/*
* WTFPL
*
* Utilisation :
* 1) Ouvrir minecraft moddé
* 2) Aller dans les options de Not Enough Items
* 3) Tools > Data Dumps > Blocks/Items > Dump
* 4) Dans le dossier minecraft/dumps, copier item.csv et le mettre au même endroit que ce script

OpenCart Issue #1286

This is the full version of the thread for opencart#1286, archived from notification emails.
The discussion has since been deleted almost entirely by OpenCart's developer.
Everyone who posted in it has also been blocked from the OpenCart repo.


Damian Bushong

@blha303
blha303 / README.md
Last active March 9, 2016 13:51
Skype<->IRC Bridge. Get ROOM id from https://gist.github.com/blha303/9913693. Getting an error? Remove Transport='x11'. Still getting an error? Join irc.esper.net #blha303 and ask.

Skype<->IRC Bridge

I hate Skype. So much. Words can't even describe. It's slow, it's bloated, people keep telling me to get on Skype, I keep telling them to get on IRC, but I never thought there was a way to bridge the two. But there is. And it's super simple. All you need is a VPS. Windows or Linux, doesn't matter, but I'm using Linux. Python is cross-platform and I tested the bot on Windows, so I can help out if you can't get this working there. irc.esper.net #blha303

  1. Install Python 2.7.*. I use 2.7.3 because it's installed by default in Ubuntu, among other reasons.
  2. Get pip or setuptools and install Skype4Py and irc.
  3. Get the script, the other file in this gist. (If you're not using X11 [for instance, if you're using Windows], remove Transport='x11' from near the bottom of the file. Not the whole line, just those exact characters.)
  4. See the ROOM variable on line 8? Know how to set that? Well, let's go.
  • This script lists all open chats, which includes both P2P and grou
@yosko
yosko / batch-download.php
Created December 16, 2013 15:41
Batch download files from a list of URLs into your own server and ZIP it for a easier download to your computer.
<!doctype html>
<!--
PHP Batch Download Script
@author Yosko <contact@yosko.net>
@copyright none: free and opensource
@link http://www.yosko.net/article32/snippet-05-php-telechargement-de-fichiers-par-lots
-->
<html lang="en-US">
<head>
@TimSC
TimSC / image-to-v4l2loopback.py
Created September 12, 2013 02:00
Send image data to v4l2loopback using python. Remember to do "sudo modprobe v4l2loopback" first! Released under CC0 by Tim Sheerman-Chase, 2013
#Send image data to v4l2loopback using python
#Remember to do sudo modprobe v4l2loopback first!
#Released under CC0 by Tim Sheerman-Chase, 2013
import fcntl, sys, os
from v4l2 import *
import time
import scipy.misc as misc
import numpy as np
@boxmein
boxmein / markovbot.js
Last active June 1, 2021 07:51
An IRC bot that responds to every input on a channel with Markov-generated output. It also learns from every channel message. Put two in a channel for utter chaos!
// Stripped down version of minibot.
// Use as baseline for other bots !
/*jslint node: true */
console.log("-- working directory: " + process.cwd());
var net = require("net"),
fs = require("fs");
@nikcub
nikcub / README.md
Created October 4, 2012 13:06
Facebook PHP Source Code from August 2007