Skip to content

Instantly share code, notes, and snippets.

View origamid's full-sized avatar

André origamid

View GitHub Profile
@origamid
origamid / sameheight
Created June 22, 2014 00:43
Same Height
$(document).ready(function(){
$('.servicos__item').each(function(){
var highestBox = 0;
$('.servicos__item__coluna', this).each(function(){
if($(this).height() > highestBox)
highestBox = $(this).height();
});
$('.servicos__item__info',this).height(highestBox);
});
});
@origamid
origamid / delete_ds_store
Last active August 29, 2015 14:04
Delete .ds_store from directory and subdirectory
find . -name '*.DS_Store' -type f -delete
@origamid
origamid / expose
Created October 17, 2014 18:34
expose-animation
defaults write com.apple.dock expose-animation-duration -float 0.1 ; killall Dock
defaults delete com.apple.dock expose-animation-duration ; killall Dock
@origamid
origamid / smooth-scroll.js
Last active July 21, 2022 15:23 — forked from clemlatz/smooth-scroll.js
Smooth Scroll Animation - JavaScript
/**
* Smooth scroll animation
* @param {int} endX: destination x coordinate
* @param {int} endY: destination y coordinate
* @param {int} duration: animation duration in ms
*/
function smoothScrollTo(endX, endY, duration) {
const startX = window.scrollX || window.pageXOffset;
const startY = window.scrollY || window.pageYOffset;
const distanceX = endX - startX;
@origamid
origamid / html2img.html
Created March 27, 2020 17:36
html 2 canvas 2 image download
<div class="capture" contenteditable>
<p>Capture with right click</p>
</div>
<script src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script>
<script>
const elementToSave = document.querySelector(".capture");
// Download with right click
document.addEventListener("contextmenu", () => {
html2canvas(elementToSave).then(canvas => {
@origamid
origamid / glitch.html
Created November 24, 2025 23:50
Glitch
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Efeito Glitch</title>
<style>
body {
display: flex;
flex-direction: column;