Skip to content

Instantly share code, notes, and snippets.

View artzub's full-sized avatar
😊

Artem Zubkov artzub

😊
View GitHub Profile
@artzub
artzub / .gitignore
Last active October 1, 2015 16:09
Global Water Experiment
#ignore thumbnails created by windows
Thumbs.db
#Ignore files build by Visual Studio
*.obj
*.exe
*.pdb
*.user
*.aps
*.pch
*.vspscc
@artzub
artzub / .gitignore
Last active December 10, 2015 23:28
Work with github api.
.idea/
*.iml
*.iws
@artzub
artzub / index.html
Last active August 2, 2016 20:21
Three.js and D3 Force layout (d3.behavior.zoom)
<!DOCTYPE html>
<html>
<head>
<title>Three ans D3</title>
<style>
body, html {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
@artzub
artzub / index.html
Last active September 28, 2017 06:35 — forked from milroc/index.html
Tooltip as a d3 helper
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<script type="text/javascript" src="./tooltip.js"></script>
</head>
<body>
<div class="viz"></div>
<script type="text/javascript">
@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;
@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) {
/**
* 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 / 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 = '&';
@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 / 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`**