When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}| # Unix (Terminal) | |
| open -a "Google Chrome" --args --disable-gpu-vsync --disable-frame-rate-limit | |
| # Windows (Command prompt) | |
| start chrome --args --disable-gpu-vsync --disable-frame-rate-limit |
Here's a list of mildly interesting things about the C language that I learned mostly by consuming Clang's ASTs. Although surprises are getting sparser, I might continue to update this document over time.
There are many more mildly interesting features of C++, but the language is literally known for being weird, whereas C is usually considered smaller and simpler, so this is (almost) only about C.
struct foo {
struct bar {
int x;Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
| <div class="append field fancy-uploader"> | |
| <input type="text" class="input xwide" placeholder="File"> | |
| <input type="file" name="picture"> | |
| <div class="primary btn medium"> | |
| <button>Upload</button> | |
| </div> | |
| </div> |
This gist describes how to install the basic tools you'll need to do scientific computing with Python on Mac OS X. These have been tested with Mac OS X 10.6 and 10.7.
Your Mac comes with Python installed by in /usr/bin/; however, you
probably don't want to use that Python because it is rarely updated
and, it's not a good idea to mess with that which OS X has installed.
| alias gundo='git reset HEAD~ && git clean -df' |
| alias sshkey="cat ~/.ssh/id_rsa.pub | pbcopy && echo 'Copied to clipboard.'" |
| <?php | |
| use Illuminate\Database\Migrations\Migration; | |
| use Illuminate\Database\Schema\Blueprint; | |
| class PivotPostTagTable extends Migration { | |
| /** | |
| * Run the migrations. | |
| * |