Math.random().toString(36).substr(2);
This simply generates a random float, casts it into a String using base 36 and remove the 2 first chars 0 and. Note that this is not a replacement for UUID generation.
elixir | |
====== | |
version used | |
------------ | |
1.2 | |
show version | |
------------ | |
$ elixir -v |
#!/bin/bash | |
# Locate the history file in your profile, and copy it to the same folder as this script. | |
# On Mac: ~/Library/Application\ Support/Google/Chrome/Default/History | |
# On Windows: C:\Users\YOUR USER NAME\AppData\Local\Google\Chrome\User Data\Default\History | |
sqlite3 History <<! | |
.headers on | |
.mode csv | |
.output out.csv |
FROM node:4.3.2 | |
##Based on | |
MAINTAINER Tony Hirst | |
RUN apt-get clean -y && apt-get -y update && apt-get -y upgrade && \ | |
apt-get -y update && apt-get install -y wget ant unzip openjdk-7-jdk && \ | |
apt-get clean -y | |
#!/bin/bash | |
#no PATH, no way to accidently run any programs | |
PATH='' | |
#useful variables | |
term_height=0 | |
term_width=0 | |
term_scroll_height=0 | |
status_line_row=0 |
[Desktop Entry] | |
Name=iTerm | |
Comment=Use the command line | |
TryExec=gnome-terminal | |
Exec=gnome-terminal --full-screen | |
Icon=utilities-terminal | |
Type=Application | |
X-GNOME-DocPath=gnome-terminal/index.html | |
X-GNOME-Bugzilla-Bugzilla=GNOME | |
X-GNOME-Bugzilla-Product=gnome-terminal |
commit 3f5e3bdbb45bc2cd9ae95972420eb11b0340f120 | |
Author: Matthew Garrett <mjg59@coreos.com> | |
Date: Mon Feb 1 13:31:00 2016 +1100 | |
Block most UEFI variable deletions | |
Some systems appear to become upset if certain UEFI non-volatile variables | |
are delted, to the point of no longer POSTing successfully. For a short-term | |
fix, let's just block deletion of most variables while we figure out a | |
better approach. |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
import sys,os | |
import curses | |
def draw_menu(stdscr): | |
k = 0 | |
cursor_x = 0 | |
cursor_y = 0 | |
# Clear and refresh the screen for a blank canvas | |
stdscr.clear() |