Skip to content

Instantly share code, notes, and snippets.

View electricg's full-sized avatar

Giulia Alfonsi electricg

View GitHub Profile
@electricg
electricg / epub.md
Created January 28, 2021 17:01
Epub
mkdir test && cd "$_"
tar -xzf ../test.epub
@electricg
electricg / merge.js
Created February 11, 2020 22:35
Extension to detect the type of merge based on the base branch
const options = {
master: 'merge',
staging: 'squash'
};
const base = document.querySelector('#partial-discussion-header .base-ref').textContent.trim();
const what = options[base];
[...document.querySelectorAll('button[data-details-container=".js-merge-pr"]')].forEach(item => {
@electricg
electricg / berlin2019.md
Last active June 5, 2019 18:22
Berlin 2019

Things to do and see in Berlin between May 26-30 2019

Note: this will be my 5th visit to Berlin, so I have already done all the classic and famous things.

Including what I've already done to keep track.

@electricg
electricg / rss.md
Last active March 22, 2019 16:01
Browsers and GitHub updates RSS feed collection
@electricg
electricg / gifs-app.md
Last active May 28, 2020 06:11
Gifs app

Capture portion of screen as animated gif

Feature Gifox GIF Brewery Recordit Giphy
Resize window drag&drop v v v v
Resize window by input x v x v
Start record by keyboard v x x v
Stop record by keyboard v x x v
Watermark x x x v
Optional capture cursor v v v v
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.table-wrapper {
/* border: 1px solid #ccc; */
overflow: scroll;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.table-wrapper {
/* border: 1px solid #ccc; */
overflow: scroll;
@electricg
electricg / 2017.json
Last active June 20, 2018 01:11
ffconf sessions
[
{
"speaker": {
"name": "James Kyle",
"twitter": "thejameskyle",
"photo": "https://2017.ffconf.org/images/speakers/james.gif",
"bio":
"I dropped out of high school at 16, made email templates for a marketing internship, then started selling WordPress installs for $50"
},
"description":
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
*, *:after, *:before {
box-sizing: border-box;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
*, *:after, *:before {
box-sizing: border-box;
}