Skip to content

Instantly share code, notes, and snippets.

View camiloaa's full-sized avatar

Camilo Alejandro camiloaa

View GitHub Profile
@camiloaa
camiloaa / LingoMultiTTS.user.js
Last active January 12, 2016 11:51 — forked from halfdan/gist:be037a9c37c50e3924a9
Duolingo Google TTS
//==UserScript==
//@name LingoGoogleTTS
//@version 1.2
//@description Use Google TTS for Duolingo
//@match https://www.duolingo.com/*
//@match http://www.duolingo.com/*
//@grant none
//==/UserScript==
function googleTTSLang(targetLang) {
function simulate(element, eventName)
{
var options = extend(defaultOptions, arguments[2] || {});
var oEvent, eventType = null;
for (var name in eventMatchers)
{
if (eventMatchers[name].test(eventName)) { eventType = name; break; }
}
@camiloaa
camiloaa / Duolingo_Trim_tree.user.js
Last active October 25, 2017 13:56 — forked from arekolek/Duolingo_Trim_tree.user.js
Duolingo Trim tree [mirror]
// ==UserScript==
// @name Duolingo Trim tree
// @namespace 9a84a9d7b3fef7de9d2fd7155dcd794c
// @description Hides all golden skills with a button.
// @author Arek Olek
// @match https://www.duolingo.com/*
// @icon https://raw.githubusercontent.com/camiloaa/duolingotreeenhancer/master/duolingo.png
// @grant none
// @updateURL https://gist.github.com/camiloaa/6b902c11f7ab44a4c3ef/raw/Duolingo_Trim_tree.user.js
// @downloadURL https://gist.github.com/camiloaa/6b902c11f7ab44a4c3ef/raw/Duolingo_Trim_tree.user.js
@camiloaa
camiloaa / DuolingoOldStyle.css
Last active February 9, 2021 11:37
Bigger Duo
/* Just bigger text */
.e4VJZ {
font-size: 1.3rem;
}
/* Input box */
._2-OmZ {
font-size: 1.3rem;
}
@camiloaa
camiloaa / .gitconfig
Last active September 1, 2020 07:29
My git aliases and tweaks
[alias]
add-mod = !git add $(git status -uno -s | awk '{ print $2 }') && git status -uno -s
amend = commit --amend
ci = commit
co = checkout
di = diff
fix = fixup
st = status -s
meld = difftool -t meld
kdiff3 = difftool -t kdiff3
@camiloaa
camiloaa / git-split
Last active May 5, 2024 17:33
Create a copy of an existing file with full history in just two commits
#!/bin/sh
# Create a copy of an existing file with full history in just two commits
# All other scripts I found used at least three commits, often four
if [ ! $# -eq 2 ]; then
echo "Usage: git split <orig> <copy>"
echo ""
echo "Copy file <orig> to <copy> keeping both versions with full history"
exit 1
fi
/** Wait until an specific element appears in the body section of HTML document
* Uses promises that are fulfilled when the element appears.
*
* Inspired by https://gist.githubusercontent.com/raw/2625891/waitForKeyElements.js
*
** How to use **
*
* Define a callback_function that takes an HTML element as parameter
* callback_function = function (element) {
* do_something_with_found(element)