$mod
refers to the modifier key (alt by default)
startx i3
start i3 from command line$mod+<Enter>
open a terminal$mod+d
open dmenu (text based program launcher)$mod+r
resize mode ( or to leave resize mode)$mod+shift+e
exit i3
# imports | |
from OpenGL.GL import * | |
from OpenGL.GLU import * | |
import glfw | |
import threading | |
# initialise glfw | |
if glfw.init() == glfw.FALSE: | |
exit() |
# I am just an example for idea files! | |
""" | |
Explain the idea here | |
""" | |
# an example | |
def someIdea(arg): | |
print(arg) | |
#include "application.h" | |
#include "utils.h" | |
#include "mesh.h" | |
#include "texture.h" | |
#include "light.h" | |
#include "volume.h" | |
#include "fbo.h" | |
#include "shader.h" | |
#include "input.h" | |
#include "animation.h" |
# -*- coding: utf-8 -*- | |
# Created by Marc_Alx | |
# | |
# pip install winrt | |
# Documentation here : https://github.com/Microsoft/xlang/tree/master/src/package/pywinrt/projection | |
# NB Only works with version of Windows that supports 'windows.ui.notifications' | |
# | |
# Requirements | |
# Windows 10, October 2018 Update or later. | |
# Python for Windows, version 3.7 or later |
'use strict'; | |
const crypto = require('crypto'); | |
const ENC_KEY = "bf3c199c2470cb477d907b1e0917c17b"; // set random encryption key | |
const IV = "5183666c72eec9e4"; // set random initialisation vector | |
// ENC_KEY and IV can be generated as crypto.randomBytes(32).toString('hex'); | |
const phrase = "who let the dogs out"; | |
var encrypt = ((val) => { |
"""Perlin noise implementation.""" | |
# Licensed under ISC | |
from itertools import product | |
import math | |
import random | |
def smoothstep(t): | |
"""Smooth curve with a zero derivative at 0 and 1, making it useful for | |
interpolating. |