alias ~~~=":<<'~~~sh'";:<<'~~~sh'
# Example how to add rich editor capabilities to your models in admin. | |
from django.contrib.admin import site, ModelAdmin | |
import models | |
# we define our resources to add to admin pages | |
class CommonMedia: | |
js = ( | |
'https://ajax.googleapis.com/ajax/libs/dojo/1.6.0/dojo/dojo.xd.js', |
user www-data; | |
http { | |
## | |
# Basic Settings | |
## | |
sendfile on; | |
tcp_nopush on; |
// https://gist.github.com/uhop/fbb7fc3606cbb2fa54e0ce4f9a200037 | |
// License: BSD-3 | |
// (c) 2023 Eugene Lazutkin | |
import http from 'node:http'; | |
import fs from 'node:fs'; | |
import path from 'node:path'; | |
const fsp = fs.promises; |
alternatively use: http://geoff.greer.fm/lscolors/
The value of this variable describes what color to use for which attribute when colors are enabled with CLICOLOR. This string is a concatenation of pairs of the format fb, where f is the foreground color and b is the background color.
The color designators are as follows:
a black
This is the table from man 5 terminfo
.
Do NOT hardcode terminal escape sequences. Use tput with the cap-names from the table below to get the right code for your terminal.
(P) | indicates that padding may be specified |
# commands from http://www.askapache.com/linux/bash_profile-functions-advanced-shell.html | |
#alias chmod='command chmod -c' | |
alias cpr='command cp -rpv' | |
alias df='command df -kh' | |
alias df1='command df -ia' | |
alias diff='diff -up' | |
alias dsiz='du -sk * | sort -n --' | |
alias du='command du -kh' | |
alias du1='echo *|tr " " "n" |xargs -iFF command du -hs FF|sort' |
#Newbie programmer | |
def factorial(x): | |
if x == 0: | |
return 1 | |
else: | |
return x * factorial(x - 1) | |
print factorial(6) | |
#First year programmer, studied Pascal |
Taken from openframeworks/openFrameworks#1190
Resolution Independent Curve Rendering using Programmable Graphics Hardware
http://research.microsoft.com/en-us/um/people/cloop/loopblinn05.pdf
Resolution independent GPU accelerated Curve & Font rendering GPU based Resolution Independent Font & Curve Rendering – initial Release
http://jausoft.com/blog/2011/04/01/resolution-independent-gpu-accelerated-curve-font-rendering/