Skip to content

Instantly share code, notes, and snippets.

View devgru's full-sized avatar

Dima Semyushkin devgru

View GitHub Profile
@devgru
devgru / .block
Last active October 9, 2016 08:45
Fire Reports — bare
license: mit
@devgru
devgru / .block
Last active June 15, 2017 21:16
Fire Reports
license: mit
@devgru
devgru / README.md
Created April 24, 2016 10:23
Simple stream 2016
@devgru
devgru / README.md
Created April 24, 2016 10:05
Simple stream 2016
@devgru
devgru / .gitignore
Last active November 14, 2019 01:29
RGB, HSL and LAB color spaces
.idea
bower_components
@devgru
devgru / d3.js
Last active December 19, 2015 17:55
Skill Octopus
!function() {
var d3 = {
version: "3.4.4"
};
if (!Date.now) Date.now = function() {
return +new Date();
};
var d3_arraySlice = [].slice, d3_array = function(list) {
return d3_arraySlice.call(list);
};
@devgru
devgru / canvas.js
Last active January 4, 2021 16:42
High DPI Canvas (Retina support)
var width = 500,
height = 70,
font = '18px serif'
function getRetinaRatio() {
var devicePixelRatio = window.devicePixelRatio || 1
var c = document.createElement('canvas').getContext('2d')
var backingStoreRatio = [
c.webkitBackingStorePixelRatio,
c.mozBackingStorePixelRatio,
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
We couldn’t find that file to show.
We couldn’t find that file to show.