Skip to content

Instantly share code, notes, and snippets.

View l3dlp's full-sized avatar
🎯
go+wasm revives me ✔️

L3DLP labs l3dlp

🎯
go+wasm revives me ✔️
View GitHub Profile
@l3dlp
l3dlp / OrbitControls.js
Created May 13, 2018 17:36 — forked from mrflix/OrbitControls.js
Three.OrbitControls for multiple instances on a page.Usage: controls = new THREE.OrbitControls(camera, document, renderer.domElement); Based on: http://threejs.org/examples/js/controls/OrbitControls.js
/**
* @author qiao / https://github.com/qiao
* @author mrdoob / http://mrdoob.com
* @author alteredq / http://alteredqualia.com/
* @author WestLangley / http://github.com/WestLangley
* @author erich666 / http://erichaines.com
* @author mrflix / http://felixniklas.de
*
* released under MIT License (MIT)
*/
@l3dlp
l3dlp / vcard2qrcode.pl
Created October 26, 2017 16:05 — forked from adulau/vcard2qrcode.pl
VCARD to QRcode
#!/usr/bin/perl
#
use GD::Barcode::QRcode;
open(X, ">./out.png");
binmode(X);
my $vcard = "
BEGIN:VCARD
N:Lastname;Firstname
@l3dlp
l3dlp / vcard2qrcode.pl
Created October 26, 2017 16:05 — forked from adulau/vcard2qrcode.pl
VCARD to QRcode
#!/usr/bin/perl
#
use GD::Barcode::QRcode;
open(X, ">./out.png");
binmode(X);
my $vcard = "
BEGIN:VCARD
N:Lastname;Firstname
@l3dlp
l3dlp / nose.html
Created June 23, 2017 00:39 — forked from kukulski/nose.html
CSS + straight JS color picker parts
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>trivial color picker</title>
<style>
.washHSV {
/*
* This file is part of the OpenKinect Project. http://www.openkinect.org
*
* Copyright (c) 2010 individual OpenKinect contributors. See the CONTRIB file
* for details.
*
* This code is licensed to you under the terms of the Apache License, version
* 2.0, or, at your option, the terms of the GNU General Public License,
* version 2.0. See the APACHE20 and GPL2 files for the text of the licenses,
* or the following URLs:
@l3dlp
l3dlp / gist:59540e499fb4fffa747ac34389c96506
Created March 7, 2017 09:18 — forked from mrdoob/gist:1325393
ffmpeg: recording the screen.
ffmpeg -f x11grab -b 1M -bt 2M -r 30 -s 512x512 -i :0.0+1,53 -an kinect.webm
@l3dlp
l3dlp / adminer.css
Last active May 29, 2016 19:01 — forked from pappu687/adminer.css
Another Adminer Theme
/*
Another Adminer Theme
by L3DLP (web@l3dlp.com)
Based on previous works :
* Mahbubur Rahman
https://gist.github.com/pappu687/5589922
* Lukáš Brandejs
https://raw.github.com/vrana/adminer/master/designs/ng9/adminer.css
*/
@l3dlp
l3dlp / A.markdown
Created April 25, 2016 15:41 — forked from larrybotha/A.markdown
Fix SVGs not scaling in IE9, IE10, and IE11

Fix SVG in <img> tags not scaling in IE9, IE10, IE11

IE9, IE10, and IE11 don't properly scale SVG files added with img tags when viewBox, width and height attributes are specified. View this codepen on the different browsers.

Image heights will not scale when the images are inside containers narrower than image widths. This can be resolved in 2 ways.

Use sed in bash to remove width and height attributes in SVG files

As per this answer on Stackoverflow, the issue can be resolved by removing just the width and height attributes.

server {
listen 80;
server_name www.example.com;
root /var/www/vhosts/example.com/public/;
location /
{
index index.php index.html index.htm;
}
@l3dlp
l3dlp / css_resources.md
Created November 8, 2013 23:11 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides