==[ONLY for Ubuntu]== Install libmysqlclient-dev
$ sudo apt-get install libmysqlclient-devInstall mysqlclient.
| // DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| // Version 2, December 2004 | |
| // | |
| // Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> | |
| // | |
| // Everyone is permitted to copy and distribute verbatim or modified | |
| // copies of this license document, and changing it is allowed as long | |
| // as the name is changed. | |
| // | |
| // DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| import ctypes | |
| user32 = ctypes.windll.user32 | |
| # get screen resolution of primary monitor | |
| res = (user32.GetSystemMetrics(0), user32.GetSystemMetrics(1)) | |
| # res is (2293, 960) for 3440x1440 display at 150% scaling | |
| user32.SetProcessDPIAware() | |
| res = (user32.GetSystemMetrics(0), user32.GetSystemMetrics(1)) | |
| # res is now (3440, 1440) for 3440x1440 display at 150% scaling |
| Shader "Unlit/GravityWarp" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| } | |
| SubShader | |
| { | |
| Tags { | |
| "RenderType"="Opaque" |
| #!/usr/bin/env python | |
| import pyaudio | |
| import socket | |
| import sys | |
| FORMAT = pyaudio.paInt16 | |
| CHANNELS = 1 | |
| RATE = 44100 | |
| CHUNK = 4096 |
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """This module's docstring summary line. | |
| This is a multi-line docstring. Paragraphs are separated with blank lines. | |
| Lines conform to 79-column limit. | |
| Module and packages names should be short, lower_case_with_underscores. | |
| Notice that this in not PEP8-cheatsheet.py |
| # -*- coding: utf-8 -*- | |
| import time | |
| t0 = time.clock() | |
| import pandas as pd | |
| from pandas.tseries.offsets import BDay | |
| import numpy as np | |
| import datetime as dt | |
| from copy import copy |
| float nrand(float2 uv) | |
| { | |
| return frac(sin(dot(uv, float2(12.9898, 78.233))) * 43758.5453); | |
| } |
| /// | |
| /// Simple pooling for Unity. | |
| /// Author: Martin "quill18" Glaude (quill18@quill18.com) | |
| /// Latest Version: https://gist.github.com/quill18/5a7cfffae68892621267 | |
| /// License: CC0 (http://creativecommons.org/publicdomain/zero/1.0/) | |
| /// UPDATES: | |
| /// 2015-04-16: Changed Pool to use a Stack generic. | |
| /// | |
| /// Usage: | |
| /// |