Skip to content

Instantly share code, notes, and snippets.

#include "malevich.h"
using namespace malevich;
int main(int argc, char **argv)
{
auto cloud = pcloud::null();
... тут посчитал все
@donkaban
donkaban / GLSL-Noise.md
Created June 14, 2016 11:56 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}
#!/usr/bin/env python
import sys
import os
import re
include_dirs = set()
source_files = set()
def _search(path):
!/bin/sh
cp -n /Library/Application\ Support/Syncrosoft\ Soft-eLicenser/SeLicenser.sel ~/Desktop/SeLicenser.bak
rm /Library/Application\ Support/Syncrosoft\ Soft-eLicenser/SeLicenser.sel
sudo systemsetup -setusingnetworktime off
sudo systemsetup -setdate 12:31:2100
/Library/Application\ Support/eLicenser/pos/Synsopos.app/Contents/MacOS/Synsopos -RegSeL
import sys
import datetime
class logger(object):
instance = None
def __init__(self, tag):
self.tag = str(tag)
# -*- mode: ruby -*-
# vi: set ft=ruby :
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'parallels'
#ENV['VAGRANT_DEFAULT_PROVIDER'] = 'virtualbox'
Vagrant.configure(2) do |config|
config.vm.define "zoddy_dev"
config.vm.box = "parallels/ubuntu-14.04"
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
#!/bin/bash
rm -rf /Volumes/ramdisk
if [[ $(mount | awk '$3 == "/Volumes/ramdisk" {print $3}') != "" ]]; then
echo /Volumes/ramdisk is mounted
else
diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://8475854`
fi
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'