Skip to content

Instantly share code, notes, and snippets.

View karbassi's full-sized avatar
🌱

Ali Karbassi karbassi

🌱
View GitHub Profile
[user]
name = Your Name
email = your@email.com
[color]
status = auto
branch = auto
diff = auto
ui = auto
[color "branch"]
current = yellow reverse
@karbassi
karbassi / extensions.txt
Last active August 4, 2021 17:05
VSCode Extensions and Settings
https://marketplace.visualstudio.com/items?itemName=hookyqr.beautify
https://marketplace.visualstudio.com/items?itemName=pranaygp.vscode-css-peek
https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
https://marketplace.visualstudio.com/items?itemName=ecmel.vscode-html-css
https://marketplace.visualstudio.com/items?itemName=mkaufman.htmlhint
https://marketplace.visualstudio.com/items?itemName=zignd.html-css-class-completion
@karbassi
karbassi / clear-all.js
Last active July 15, 2021 03:12
Tweetdeck Clear All - 2021
function clearAll() {
document.querySelectorAll('.js-column').forEach((column) => {
column.querySelector('a[data-action="options"]').click();
setTimeout(() => {
column.querySelector('[data-action="clear"]').click();
setTimeout(() => {
column.querySelector('a[data-action="options"]').click();
}, 150);
}, 200);
});
[
{
"input": {
"r": 1.00,
"g": 0.65,
"b": 0.00
},
"output": {
"orange": 1
}
[
"I think therefore I am",
"The only thing I know is that I know nothing",
"The mind is furnished with ideas by experience alone",
"Philosophy is a battle against the bewitchment of our intelligence by means of language",
"Leisure is the mother of philosophy",
"Happiness is the highest good",
"Philosophy is at once the most sublime and the most trivial of human pursuits"
]
[
"0+0=0",
"0+1=1",
"0+2=2",
"0+3=3",
"0+4=4",
"0+5=5",
"1+0=1",
"1+1=2",
$.fn.duplicate = function(count, cloneEvents, callback) {
var stack = [], el;
while(count--) {
el = this.clone( cloneEvents );
callback && callback.call(el);
stack.push( el.get()[0] );
}
return this.pushStack( stack );
};
var start = null;
function step(timestamp) {
// console.log(timestamp);
if (!start) {
start = timestamp;
}
var progress = timestamp - start;
@karbassi
karbassi / index.html
Created November 16, 2018 17:59
Creating Canvas Elements using objects
<!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>Position Detection</title>
<style>
#canvas {
@karbassi
karbassi / index.html
Last active November 16, 2018 15:42
Canvas Position Detection
<!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>Position Detection</title>
<style>
#canvas {