This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CommonsChunkPlugin = require('webpack/lib/optimize/CommonsChunkPlugin'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const apps = [ | |
{ | |
name: 'app1', | |
baseUrl: '/app1' | |
}, | |
{ | |
name: 'app2', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Custom settings (J) | |
PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\[\033[01;32m\]$(__git_ps1 " (%s)")\[\033[00m\]\$ ' | |
alias grep='grep --color' | |
alias egrep='grep --color' | |
alias fgrep='grep --color' | |
shopt -s histappend | |
#export PROMPT_COMMAND="$PROMPT_COMMAND ; history -a " # ; history -c ; history -r |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shader_type canvas_item; | |
//render_mode unshaded; | |
uniform float upScale = 1.0f; | |
uniform float bottomScale = 1.5f; | |
uniform float clampY = 0.0f; | |
uniform float expFactor = 0.0f; | |
void fragment(){ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MyGameProject | |
# Makefile | |
APPNAME := MyGameProject | |
APPNAME_LC := mygameproject | |
#APPVER := 0.8.2 | |
APPVER := $(shell grep 'string ApplicationVersion' scripts/nc/app/GameApplication.cs | cut -d '"' -f 2 ) | |
#echo $(APPVER) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import asyncio | |
from cf.comp.component import Component | |
from quart import Quart, websocket, app, send_from_directory, redirect, request, url_for | |
from quart.serving import run_app, Server | |
from django.core.servers.basehttp import ( | |
WSGIServer, get_internal_wsgi_application, run, | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
ignored = !git ls-files -v | grep "^[[:lower:]]" | |
ci = commit | |
st = status | |
co = checkout | |
dc = diff --cached | |
#lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
mg = merge --no-ff --no-commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from enum import Enum, EnumMeta | |
class ProtobufEnumMeta(EnumMeta): | |
def __new__(metacls, cls, bases, classdict): | |
""" | |
Enum uses its EnumMeta metaclass magic method 'new' to instrument | |
the Enum class, hence we override that method in order to add | |
Protobuf attributes from the protobuf enum before. | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/env/python | |
import math | |
from itertools import count, islice | |
# Running this program shows: | |
# 1-9 Avg: Primes: 0.4796 bit/symbol (4 items) Composites: 0.7296 bit/symbol (5 items) | |
# 1-99 Avg: Primes: 0.7795 bit/symbol (25 items) Composites: 0.8763 bit/symbol (74 items) | |
# 1-999 Avg: Primes: 0.8801 bit/symbol (168 items) Composites: 0.9210 bit/symbol (831 items) | |
# 1-9999 Avg: Primes: 0.9276 bit/symbol (1229 items) Composites: 0.9403 bit/symbol (8770 items) |