Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View tiborsaas's full-sized avatar
🛰️
29C4D3B40280AE810FB4A81681E4417B

Tibor Szász tiborsaas

🛰️
29C4D3B40280AE810FB4A81681E4417B
View GitHub Profile
.p-top_nav {
display: none;
}
.p-client--ia-top-nav {
grid-template-rows: 0px auto min-content;
}
@tiborsaas
tiborsaas / comvert_to_web_video.md
Last active January 19, 2019 13:05
cross browser video encoding

ffmpeg -i {in}.mov -vcodec libx264 -an -t 54 -s 1280x720 -pix_fmt yuv420p -preset slow {out}.mp4

@tiborsaas
tiborsaas / easing.css
Created October 26, 2018 18:19
easing.css
:root {
/* Place variables in here to use globally */
}
.easing-variables {
--ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53);
--ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19);
--ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22);
--ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06);
--ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035);
--ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.335);
@tiborsaas
tiborsaas / fresh-install
Last active March 5, 2019 19:47
Basic apps for my daily needs
# Install stuff for windows
# First install chocolatey from here:
# https://chocolatey.org/docs/installation
# Dev
choco install git
choco install nodejs
choco install go
@tiborsaas
tiborsaas / canvas.html
Created September 9, 2017 11:40
Greenfox Workshop Boilerplate
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Greenfox Workshop</title>
<style>
body {
background: #333;
@tiborsaas
tiborsaas / greenfox.md
Created August 31, 2017 10:10
Skill ws

ABSTRACTS

  • Given a good enough material, any simple programming concepts could be picked up
  • Source code is well organized and tracked in GitHub
  • Source code changes are frequently commited
  • Comprehend coding basics and implement them in code
  • Understand what desgin patterns are and use them

ABSTRACTS

import tkinter as tk # using Python 3
size = 600
m = tk.Tk()
canvas = tk.Canvas(m, width=size, height=size)
canvas.pack()
pos = 0
scale = 1/3
def rect(n, x, y, size, color):
global scale
class Diamond():
def __init__(self, depth):
self.depth = depth
def draw(self):
self.triangle(self.depth//2, 'up')
self.triangle(self.depth//2, 'down')
def triangle(self, depth, direction):
if direction == 'up':
@tiborsaas
tiborsaas / RackExtension exporter
Last active August 29, 2015 14:23
Export RackExtension list
// PRESS (CTRL/Command)+SHIFT+J and paste this code after you loaded all the extensions
var saveHTML = function(fileName, html){
var link = document.createElement("a");
link.download = fileName;
link.href = "data:text/html,"+html;
link.click();
};
var links = document.querySelectorAll('#browse h2');
@tiborsaas
tiborsaas / exportFavorites
Last active November 19, 2018 23:58
Export YouTube favorites
var saveHTML = function(fileName, html){
var link = document.createElement("a");
link.download = fileName;
link.href = "data:text/plain,"+html;
link.click();
};
var links = document.querySelectorAll('a.ytd-playlist-video-renderer');
var collection = '';
for( i=0; i<links.length; i++){