Skip to content

Instantly share code, notes, and snippets.

View forceuser's full-sized avatar
🇺🇦
Stand with Ukraine! 💙 💛

Vitalii Dub forceuser

🇺🇦
Stand with Ukraine! 💙 💛
  • monobank
  • Dnipro, Ukraine
View GitHub Profile
@forceuser
forceuser / ipin.py
Last active August 29, 2015 14:06 — forked from akfreas/ipin.py
#---
# iPIN - iPhone PNG Images Normalizer v1.0
# Copyright (C) 2007, 2012
#
# Author:
# Alexander Freas
# www.sashimiblade.com
# alex@sashimiblade.com
#
#
@forceuser
forceuser / rotateIMG.js
Last active August 29, 2015 14:23
Rotate image with javascript using canvas, and resize canvas to match image size
// el - dom img element with specified src attribute
// angle - angle to rotate the image (in degrees)
function rotateImg(el,angle){
var img = document.createElement("img");
img.onload = function(){
var w = img.width;
var h = img.height;
var a = angle*(Math.PI/180);
<h3>box-shadow animations using currentColor</h3>
<i>(?) hover mouse over the block for 1 second</i>
<br/><br/>
<div class="block transitioned">Transitioned <span style="color: green;">(Expexted)</span></div>
<div class="block animated">Animated (Wrong)</div>
<hr/>
more tests...
<br/><br/>
<div class="block animated2">Animated2</div>
<div class="block animated3" type="button">Animated3</div>
@forceuser
forceuser / dep.js
Created February 8, 2016 12:34
test-node-inspector-issue-805
module.exports = class Example {
foo () {
console.log('hello foo!');
}
};
@forceuser
forceuser / example.js
Created February 24, 2016 16:40
Vanila JS Event Delegation
startListen(document.querySelector('.bebebe'),'click',function(e) {
console.log(e.target.innerHTML);
}, 'a');

#ATOM sync settings

@forceuser
forceuser / remoteconsole.html
Last active April 14, 2017 15:20
Пример удаленной консоли
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://jsconsole.com/js/remote.js?8959c129-a034-4e87-9ca5-9c0d4ceb76d7"></script>
</head>
<body>
<script>
<html>
<head>
<script src="https://qa.polyfill.io/v2/polyfill.js?features=default,es6,es7,caniuse:console-basic&flags=gated&unknown=polyfill"></script>
<script src="https://rawgit.com/facebook/regenerator/master/packages/regenerator-runtime/runtime.js"></script>
<script>
(function _callee() {
return regeneratorRuntime.async(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
@forceuser
forceuser / esm_in_node_proposal.md
Created January 29, 2018 15:35 — forked from ceejbot/esm_in_node_proposal.md
npm's proposal for supporting ES modules in node

ESM modules in node: npm edition

The proposal you’re about to read is not just a proposal. We have a working implementation of almost everything we discussed here. We encourage you to checkout and build our branch: our fork, with the relevant branch selected. Building and using the implementation will give you a better understanding of what using it as a developer is like.

Our implementation ended up differing from the proposal on some minor points. As our last action item before making a PR, we’re writing documentation on what we did. While I loathe pointing to tests in lieu of documentation, they will be helpful until we complete writing docs: the unit tests.

This repo also contains a bundled version of npm that has a new command, asset. You can read the documentation for and goals of that comma

@forceuser
forceuser / cloudSettings
Last active January 25, 2021 19:16
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-01-25T19:16:04.811Z","extensionVersion":"v3.4.3"}