Skip to content

Instantly share code, notes, and snippets.

Avatar

Nsukami _ LeMeteore

  • Nil
  • Somewhere in the universe
View GitHub Profile
View transform.py
import re
import io
import os
import fnmatch
import argparse
import mimetypes
import subprocess
import urllib.request
from contextlib import contextmanager
View rl_2018.md

Reading List - 2018

Books

  • Coders at Work
  • Messy
  • Release it!
  • Game Engine Black Book
  • Twelve Steps to a Compassionate Life
  • Writing Without Bullshit
  • Programming Rust
@LeMeteore
LeMeteore / 2017-06-15_Entropie_du_logiciel.md
Created Dec 18, 2017 — forked from sroccaserra/2017-06-15_Entropie_du_logiciel.md
Entropie du logiciel : dette technique et complexité accidentelle (Agile France 2017)
View 2017-06-15_Entropie_du_logiciel.md

Entropie du logiciel : dette technique et complexité accidentelle

2017-06-15

Mes notes sur la session de @Lilobase à @AgileFrance 2017.

Voir aussi : les slides de la session.

Qu'est-ce qui fait qu'un système logiciel est pourri ? Note : au niveau

@LeMeteore
LeMeteore / i18n_routing.py
Created Mar 19, 2017 — forked from cauethenorio/i18n_routing.py
Django snippet to make Django do not create URL language prefix for the main language (settings.LANGUAGE_CODE) Usage info in snippet docstring.
View i18n_routing.py
# coding: utf-8
"""
Cauê Thenório - cauelt(at)gmail.com
This snippet makes Django do not create URL languages prefix (i.e. /en/)
for the default language (settings.LANGUAGE_CODE).
It also provides a middleware that activates the language based only on the URL.
This middleware ignores user session data, cookie and 'Accept-Language' HTTP header.
View greet_drf.py
#!/usr/bin/env python
# -*- coding:utf-8 -*-
""" greetings """
import os
import sys
from django.conf import settings
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
@LeMeteore
LeMeteore / chromelogger.py
Created Dec 23, 2016 — forked from apollo13/chromelogger.py
Django logging to Firefox/Chrome devtools
View chromelogger.py
"""
License: MIT - https://opensource.org/licenses/MIT
ChromeLogger is a protocol which allows sending logging messages to the Browser.
This module implements simple support for Django. It consists of two components:
* `LoggingMiddleware` which is responsible for sending all log messages
associated with the request to the browser.
* `ChromeLoggerHandler` a python logging handler which collects all messages.
@LeMeteore
LeMeteore / greet.py
Last active Jan 10, 2017
django single file project
View greet.py
#!/usr/bin/env python
# -*- coding:utf-8 -*-
""" greetings """
import os
import sys
from django.conf import settings
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
@LeMeteore
LeMeteore / linode-security.md
Created Sep 6, 2016 — forked from eliangcs/linode-security.md
Basic security setup for a brand new Linode
View linode-security.md

Basic Security Setup for a Brand New Linode

Why

When you start a clean Linode, it isn't secured in the following aspects:

  • Allows root SSH login
  • Uses password authentication on SSH
  • Doesn't have a firewall
@LeMeteore
LeMeteore / gist:31accdcb701a38ec437aba08e31f8859
Created Sep 1, 2016 — forked from atcuno/gist:3425484ac5cce5298932
HowTo: Privacy & Security Conscious Browsing
View gist:31accdcb701a38ec437aba08e31f8859

The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.

I welcome contributions and comments on the information contained. Please see the How to Contribute section for information on contributing your own knowledge.

Table of Contents

View types.markdown

Types

A type is a collection of possible values. An integer can have values 0, 1, 2, 3, etc.; a boolean can have values true and false. We can imagine any type we like: for example, a HighFive type that allows the values "hi" or 5, but nothing else. It's not a string and it's not an integer; it's its own, separate type.

Statically typed languages constrain variables' types: the programming language might know, for example, that x is an Integer. In that case, the programmer isn't allowed to say x = true; that would be an invalid program. The compiler will refuse to compile it, so we can't even run it.