Skip to content

Instantly share code, notes, and snippets.

View pcakhilnadh's full-sized avatar
🎯
Focusing on Dreams

Akhil Nadh PC pcakhilnadh

🎯
Focusing on Dreams
View GitHub Profile
@pcakhilnadh
pcakhilnadh / README.md
Created December 27, 2019 04:11 — forked from hofmannsven/README.md
Git Cheatsheet
BITS = ('0', '1')
ASCII_BITS = 8
def bit_list_to_string(b):
"""converts list of {0, 1}* to string"""
return ''.join([BITS[e] for e in b])
def seq_to_bits(seq):
return [0 if b == '0' else 1 for b in seq]
<?php
// obligatoire
session_start();
require('config/config.inc.php');
require('vendor/autoload.php'); // load des fichiers Facebook
use Facebook\FacebookSession;
use Facebook\FacebookRedirectLoginHelper;