Skip to content

Instantly share code, notes, and snippets.

View marcofugaro's full-sized avatar

Marco Fugaro marcofugaro

View GitHub Profile
@gre
gre / easing.js
Last active June 27, 2024 15:37
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for more details.
*/
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
@iambibhas
iambibhas / scopes.txt
Last active June 16, 2024 20:45
Sublime Text 2: Snippet scopes
Here is a list of scopes to use in Sublime Text 2 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CoffeeScript: source.coffee
@Ahrengot
Ahrengot / sass-easing-functions.scss
Created September 18, 2014 20:24
Sass easing functions
$ease-in-sine: cubic-bezier( 0.47, 0, 0.745, 0.715 );
$ease-out-sine: cubic-bezier( 0.39, 0.575, 0.565, 1 );
$ease-in-out-sine: cubic-bezier( 0.445, 0.05, 0.55, 0.95 );
$ease-in-quad: cubic-bezier( 0.55, 0.085, 0.68, 0.53 );
$ease-out-quad: cubic-bezier( 0.25, 0.46, 0.45, 0.94 );
$ease-in-out-quad: cubic-bezier( 0.455, 0.03, 0.515, 0.955 );
$ease-in-cubic: cubic-bezier( 0.55, 0.055, 0.675, 0.19 );
$ease-out-cubic: cubic-bezier( 0.215, 0.61, 0.355, 1 );
Below I collected relevant links and papers more or less pertaining to the subject of tetrahedral meshes.
It's an ever-growing list.
------------------------------
Relevant links:
http://en.wikipedia.org/wiki/Types_of_mesh
http://en.wikipedia.org/wiki/Tetrahedron
http://en.wikipedia.org/wiki/Simplicial_complex
@paulirish
paulirish / what-forces-layout.md
Last active July 29, 2024 01:56
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@1forh
1forh / index.html
Last active July 3, 2024 14:24
Prevent map zoom on scroll
<div id="map-wrapper">
<iframe id="map-canvas"></iframe>
</div>
@mxstbr
mxstbr / Readme.md
Last active June 25, 2024 18:16
Enable tab completion for JSX with Emmet in Atom

Enable tab completion for JSX with Emmet in Atom

This guide assumes you have the emmet and language-babel packages already installed in Atom

Gif of the tab completion working

  1. Open the keymap.cson file by clicking on Atom -> Keymap… in the menu bar
  2. Add these lines of code to your keymap:
'atom-text-editor[data-grammar~="jsx"]:not([mini])':
@mwangivalentine
mwangivalentine / RaspberryPi3-AutoLoad-Programs
Created May 25, 2016 13:04
Raspberry Pi 3: Auto Starting Programs upon reboot
# This is a script for autostarting application on lxde
# First, run this command 'sudo nano ~/.config/lxsession/LXDE/autostart',
# And then replace the following. If there exists other lines, add only the required bit.
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@xscreensaver -no-splash
# Hide mouse
@unclutter
@jareware
jareware / package-json-engines.md
Last active October 30, 2020 18:36
Enforcing the engines property of package.json

Document your target environment with:

"engines": {
  "npm": ">=3.3.12 <4",
  "node": ">=5.5.0 <6"
},

Then install this:

"devDependencies": {