Skip to content

Instantly share code, notes, and snippets.

View icatalina's full-sized avatar
⚒️
Hacking

Ignacio Catalina icatalina

⚒️
Hacking
View GitHub Profile
@icatalina
icatalina / SassMeister-input.scss
Created October 2, 2014 14:11
Generated by SassMeister.com.
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
$base-font-size: 10px;
$relative: 1em;
@function px2em( $pixels, $base : $base-font-size, $unit : $relative ) {
@if ( type_of( $pixels ) != 'number' ){ @return $pixels; }
@icatalina
icatalina / index.html
Created September 23, 2016 04:49 — forked from anonymous/index.html
my jade template // source http://jsbin.com/kubaqacasa
<!DOCTYPE html>
<html>
<head>
<title>my jade template</title>
<style id="jsbin-css">
html,
body {
height: 100%;
font-family: sans-serif;
font-size: 14px;
@icatalina
icatalina / random.md
Last active September 27, 2017 22:27
Random Tools
  • Trash CLI Move files and folders to the trash

    Add alias rm=trash to your .zshrc/.bashrc to reduce typing & safely trash files: $ rm unicorn.png

  • Hub hub is a command line tool that wraps git in order to extend it with extra features and commands that make working with GitHub easier.

Browser Styling

Firefox

@icatalina
icatalina / ask.py
Last active November 13, 2017 11:49
#!/usr/bin/env python2
"""
Processes an stdin and prompts for confirmation
"""
import sys
def process():
"""
Processes an stdin and prompts for confirmation
@icatalina
icatalina / git-fs-history
Created September 26, 2018 14:12 — forked from jackocnr/git-fs-history
Git filesize history (shell script)
#!/bin/sh
#
# list the given file's filesize next to each commit
# usage: git-fs-history path/to/file
#
if [ $# -ne 1 ]; then
echo "Error: invalid number of arguments."
exit 1

Keybase proof

I hereby claim:

  • I am icatalina on github.
  • I am icatalina (https://keybase.io/icatalina) on keybase.
  • I have a public key ASDqP_DyTU8M5RwmEjofc7RpimuV5um6pNvtXkAPdqdpUwo

To claim this, I am signing this object:

@icatalina
icatalina / main.js
Created January 12, 2022 05:09
AudioDelay HTML
stop = async () => {
await window.context?.suspend();
media.getTracks().forEach(track => track.stop())
};
await stop();
media = await navigator.mediaDevices.getUserMedia({
audio: {