Skip to content

Instantly share code, notes, and snippets.

{
"browsers": ["> 1%"],
"cascade": true,
"remove": true
}
@arxeiss
arxeiss / example.sublime-project
Last active October 16, 2019 17:03
Sublime example project for Wordpress/Laravel and others with gd/FTPDeployment
{
"folders":
[
{
"path": ".../__PROJECT_FOLDER__/wp-content/themes/__THEME_NAME__/",
"folder_exclude_patterns": ["node_modules"],
"file_exclude_patterns":[ "composer.phar", "deployment.phar" ],
},
{
"path": ".../__PROJECT_FOLDER__",
// Random generator of position in circle
// Test out on http://testdata.kutac.cz/nahodna-pozice-v-kruhu/
function getCircleRandomPosition(radius){
a = Math.random();
b = Math.random();
var ret = {
x: 0,
y: 0
}
@arxeiss
arxeiss / TimeMeasuring.h
Created October 16, 2017 07:18
Simple class for elapsed time measuring in C++
#pragma once
#include <unordered_map>
#include <chrono>
class TimeMeasuring
{
private:
bool started = false;
std::chrono::steady_clock::time_point start;
std::unordered_map<std::string, std::chrono::steady_clock::time_point> breakpoints;