Skip to content

Instantly share code, notes, and snippets.

View adammockor's full-sized avatar

Adam Močkoř adammockor

  • Lighting Beetle
  • Slovakia
View GitHub Profile
@adammockor
adammockor / README.md
Last active January 22, 2017 11:34
express-mongoose-store

Install:

node index.js

Run:

node index.js
@adammockor
adammockor / fixed-memory-leak.js
Last active March 14, 2018 07:37
Memory leak test of require-uncached
const heapdump = require('heapdump');
const uncached = require('./require-uncached-patch.js');
let i;
for (i = 0; i < 100000; i++) {
require('./module.js')();
}
heapdump.writeSnapshot('./FixedMemoryLeakBefore-' + Date.now() + '.heapsnapshot');
git subtree push --prefix dist origin gh-pages
var selector = 'img' // Replace this with the selector for the element you want to make transformable
jQuery.getScript('//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js', function() {
jQuery.getScript('//cdnjs.cloudflare.com/ajax/libs/numeric/1.2.6/numeric.min.js', function() {
(function() {
var $, applyTransform, getTransform, makeTransformable;
$ = jQuery;
CSS Spinners
http://tobiasahlin.com/spinkit/
Button click confirmation popup
http://mistic100.github.io/Bootstrap-Confirmation/
Date-time picker
http://eonasdan.github.io/bootstrap-datetimepicker/
Switcher
@adammockor
adammockor / crossed-header.css
Created July 31, 2014 09:01
Crossed header with line - responsive without background
h1 {
overflow: hidden;
text-align: center;
}
h1:before,
h1:after {
background-color: #000;
content: "";
display: inline-block;
height: 1px;
/*
* SCSS Tooltips
* By David Tintner & Hacking UI
* http://hackingui.com
*
* $direction: ne, nw, se, sw. relative to the element the tooltip is on
* $bg-color: any CSS valid color string, will be applied as bg color of tooltip
* Content for tooltip comes from data-tooltip attribute on element
*/
@adammockor
adammockor / index.html
Last active August 29, 2015 14:03
Hangout chat box
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Hangout chat box</title>
<link rel="stylesheet" type="text/css" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
</head>
<body>
<div class="wrap">
<div class="header-wrap">
@adammockor
adammockor / Bocne responzivne menu
Created November 7, 2013 08:39
Bocne responzivne menu
http://jsbin.com/AviNUxA/2/edit
@adammockor
adammockor / Kruhovy text
Created October 24, 2013 09:16
Kruhový text
http://tympanus.net/Development/Arctext/