Skip to content

Instantly share code, notes, and snippets.

@bussiere
bussiere / Unicode table
Created July 25, 2018 16:30 — forked from ivandrofly/Unicode table
Unicode table - List of most common Unicode characters *
Unicode table - List of most common Unicode characters *
* This summary list contains about 2000 characters for most common ocidental/latin languages and most printable symbols but not chinese, japanese, arab, archaic and some unprintable.
Contains character codes in HEX (hexadecimal), decimal number, name/description and corresponding printable symbol.
What is Unicode?
Unicode is a standard created to define letters of all languages ​​and characters such as punctuation and technical symbols. Today, UNICODE (UTF-8) is the most used character set encoding (used by almost 70% of websites, in 2013). The second most used character set is ISO-8859-1 (about 20% of websites), but this old encoding format is being replaced by Unicode.
How to identify the Unicode number for a character?
Type or paste a character:
@bussiere
bussiere / sonic-pi-tutorial.md
Created November 29, 2017 10:44 — forked from jwinder/sonic-pi-tutorial.md
Sonic Pi in-app tutorials concatenated - last updated from master on 2017/10/15 - https://github.com/samaaron/sonic-pi

1 Welcome to Sonic Pi

Welcome friend :-)

Welcome to Sonic Pi. Hopefully you're as excited to get started making crazy sounds as I am to show you. It's going to be a really fun ride where you'll learn all about music, synthesis, programming, composition, performance and more.

@bussiere
bussiere / mgoExample.go
Created October 6, 2017 09:04 — forked from border/mgoExample.go
mgo example
package main
import (
"fmt"
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"
"time"
)
type Person struct {
@bussiere
bussiere / concurrent.futures-intro.md
Last active August 29, 2015 14:27 — forked from mangecoeur/concurrent.futures-intro.md
Easy parallel python with concurrent.futures

Easy parallel python with concurrent.futures

As of version 3.3, python includes the very promising concurrent.futures module, with elegant context managers for running tasks concurrently. Thanks to the simple and consistent interface you can use both threads and processes with minimal effort.

For most CPU bound tasks - anything that is heavy number crunching - you want your program to use all the CPUs in your PC. The simplest way to get a CPU bound task to run in parallel is to use the ProcessPoolExecutor, which will create enough sub-processes to keep all your CPUs busy.

We use the context manager thusly:

with concurrent.futures.ProcessPoolExecutor() as executor:
'''
A script to notify about Steam game prices
If the specified game is on sale it will email you.
If the game is on sale below a specified amount it will
tell you to buy the game because GabeN owns your wallet
'''
import argparse
import sys
#!/usr/bin/perl
use Mysql;
use strict;
use vars qw($school_name);
use vars qw($pass);
require "./cgi-lib.pl";
#Newbie programmer
def factorial(x):
if x == 0:
return 1
else:
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal
###########################################################################
# IRCBot: A simple library for simple IRC bots
# Copyright (c) 2009 Whidou <[email protected]>
###########################################################################
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
class IRCBot:
"""Some freaking IRC bot"""
def __init__(self, network, chan, name, orders={}, init=None, timer=None, end=None, partmessage=""):
self.chan = chan
self.network = network
self.name = name
self.partmessage = partmessage
self.load_orders(orders)
self.load_methods(init, timer, end)