Skip to content

Instantly share code, notes, and snippets.

View artzub's full-sized avatar
😊

Artem Zubkov artzub

😊
View GitHub Profile
@artzub
artzub / canvas_utils.js
Last active August 29, 2015 14:05
Some utils for canvas for using on codepen.io or anywhere
var canvas_utils;
!function() {
canvas_utils = {
resources : {
images : {
particle : (function() {
particleImg = new Image();
// © https://github.com/rictic/code_swarm/blob/master/src/particle.png
particleImg.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAB3RJTUUH1wQUCC4hoGmo9QAACvlJREFUaN69mltz00gQhS3NSCMlNjEmBYTi//8zCipUsIMd6zKytA/fctKMDITArh5ctqxLX06fvsxkiz84sizLsizPc74sFotpmvSZHPO/fnLxb8jwbNH1yZc8z8dx1HedT+Q7nU6LxWIcxz+U+zkKIC7CSYEsy7z3CDoMQ5ZlRVFwXiJO0zRNE7eM4zgMA2dQ5g+dkD0dKlKA9xVFYZVJjouLixhj13V5nnvvh2GY+wQd+MQnz9DE/VL0PM/zPHfOIX2e50VROOecc4KKvb4sS+yti8uyxPZnH44m2OUZCmS/tDqPFmZkeL1MQBrH0XtPMKAGpkXz0+mUZRkQUgzIe1w8DIN89UcKIJNzTqIvFgvvPX7QgWeKorBBoovHcYwxEiGCO0eMcRxHzlur931v1X4+hJDMGl74wd15npdl6b333kt67/00TUALbhXSsL2FYlEU6GZlBYFzhX/PA5bap2mSlJiKoIRqnHOWSefPEdNbqPDX6XSKMSqK2raVJlmWxRjx0i+j4owC2Iy3OudkJ8wplsTMNishMZ/EQIzxLEdxP
This file has been truncated, but you can view the full file.
<?xml version="1.0"?>
<file_events>
<event date="1372777891000" author="Ben Noordhuis" filename="deps/v8/.gitignore" action="M" comment=""/>
<event date="1372777891000" author="Ben Noordhuis" filename="deps/v8/ChangeLog" action="M" comment=""/>
<event date="1372777891000" author="Ben Noordhuis" filename="deps/v8/DEPS" action="M" comment=""/>
<event date="1372777891000" author="Ben Noordhuis" filename="deps/v8/Makefile" action="M" comment=""/>
<event date="1372777891000" author="Ben Noordhuis" filename="deps/v8/OWNERS" action="M" comment=""/>
<event date="1372777891000" author="Ben Noordhuis" filename="deps/v8/build/android.gypi" action="M" comment=""/>
<event date="1372777891000" author="Ben Noordhuis" filename="deps/v8/build/common.gypi" action="M" comment=""/>
<event date="1372777891000" author="Ben Noordhuis" filename="deps/v8/build/shim_headers.gypi" action="A" comment=""/>
@artzub
artzub / ConstsRus.pas
Created February 18, 2014 03:34
Localization Consts
unit ConstsRus;
interface
implementation
uses Windows, Consts;
procedure HookResourceString(ResStringRec: pResStringRec; NewStr: pChar) ;
var
@artzub
artzub / main_ssl
Created December 25, 2013 09:19
https proxy to http
ssl_certificate /etc/nginx/ssl/cert.pem;
ssl_certificate_key /etc/nginx/ssl/cert.key;
server {
listen 443 ssl;
server_name <server_name>;
location / {
proxy_pass http://localhost:80;
@artzub
artzub / tips
Created December 24, 2013 08:35
Some tips
## IDEA v13
* For a Win user, who uses the Git and wants work into a bash (%GITHOME%/bin/sh.exe) terminal at IDEA (*%GITHOME% — path to a home dir Git*)
1. go to:
**`Setting > Terminal > Shell path`**
2. set the value:
**`%GITHOME%\bin\sh.exe -login -i`**
@artzub
artzub / fix-eol.sh
Last active November 30, 2016 18:09
List of tips on all cases of life
#!/bin/sh
git config core.autocrlf true #or input. I use input for windows in order to always will be LF.
git rm --cached -r .
git reset --hard
#git add .
#git commit -m "Normalize line endings"
@artzub
artzub / hash.js
Created October 31, 2013 06:19
Работа с #хэшем в url + history api
//http://bezumkin.ru/sections/javascript/520/
Hash = {
// Получаем данные из адреса
get: function() {
var vars = {}, hash, splitter, hashes;
if (!this.oldbrowser()) {
var pos = window.location.href.indexOf('?');
hashes = (pos != -1) ? decodeURIComponent(window.location.href.substr(pos + 1)) : '';
splitter = '&';
/**
* requestAnimationFrame polyfill by Erik Möller & Paul Irish et. al.
* https://gist.github.com/1866474
*
* http://paulirish.com/2011/requestanimationframe-for-smart-animating/
* http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
**/
/*jshint asi: false, browser: true, curly: true, eqeqeq: true, forin: false, newcap: true, noempty: true, strict: true, undef: true */
@artzub
artzub / rAF.js
Created April 9, 2013 18:21 — forked from paulirish/rAF.js
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller
// fixes from Paul Irish and Tino Zijdel
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {
@artzub
artzub / index.html
Last active December 14, 2015 11:59
Test
<!DOCTYPE html>
<html lang="en">
<head>
<title>three.js webgl - interactive - voxel painter</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
font-family: Monospace;
background-color: #f0f0f0;