Skip to content

Instantly share code, notes, and snippets.

View shane-t's full-sized avatar
🐈
🐈

Shane T shane-t

🐈
🐈
View GitHub Profile
@shane-t
shane-t / embed.sh
Last active January 7, 2020 20:38
Embed a gif in a larger image
# First assume your larger image is `context.jpg` and your GIF is `insert.gif`
# Split gif into frames
convert insert.gif -coalesce frame_%03d.png
# Composite each frame of the gif into the context image. Note this means 60 pixels from the right and 30 from the bottom, adjust as needed
for i in frame_00*.png; do convert context.jpg $i -gravity southeast -geometry +60+30 -composite -matte $i.composite.png; done
### Keybase proof
I hereby claim:
* I am shane-t on github.
* I am shanet (https://keybase.io/shanet) on keybase.
* I have a public key ASB8_Txv-y-YOpoFWOgliHD8N27gjJjvmKinTg_OGuOkKQo
To claim this, I am signing this object:
0xCe9ace089673843a2BaF68f9ff3281c7ee6d2872
begin 644 file.zip
M4$L#!`H``````!57#TOG90#?&0```!D````*``D`+F=I=⪚F]R9554!0`!
M6\6266YO9&5?;6]D=6QE<PIC;VYF:6<N:G-O;@I02P,$"@````@`%5</2_4]
M97M%````5`````D`"0!214%$344N;6155`4``5O%DEE35@XH2BU*+2S-+,XL
M22WFXBHN3<E72"PHT4U/+5'(S"LN2<S)4<C)3"I-22W3!6*%I)S2U)+\_)(,
M,*L*)`<7`BO@`@!02P,$"@````@`%5</2W+EO2L:`0``/@(```8`"0!A<'`N
M:G-55`4``5O%DEEED<%N@S`01.]\Q3:*`D@);<^4G/H)O465`O%"7!&[M4UZ
M0/[W[AJ'AI:+K<?LS+"<M+(.=&/17!$J,/@U2(-96CQ&F.9E<@JJS\&>EQ(F
MO^]':+#F*_BEC%@KN^+#:L7J*+>H'.G&)/'$8EJA599>-,5N@0^H]JP`X!G=
M8]'K+DMW^^`S40Z6(F3R1."RA8S]#U*\PV8#"K_AM78(.YCQ"SP_T9.3/]!C
{
"lockfileVersion": 1,
"dependencies": {
"gist-cli": {
"version": "0.2.3",
"resolved": "https://registry.npmjs.org/gist-cli/-/gist-cli-0.2.3.tgz",
"integrity": "sha1-4U/6sCab7aCw/ALtC8wtJ45yxZ4="
},
"ini": {
"version": "1.1.0",
@shane-t
shane-t / range.js
Created March 20, 2017 13:41
Range using symbols and generators
function range (min, max) {
return {
[Symbol.iterator] : function * () {
for (let i = min; i < max; i++ ) {
yield i;
}
}
}
{
"_id" : 241158,
"awayTeamName" : "Norwich City",
"awaycorners" : 7,
"awaypenalties" : 0,
"awayredcards" : 0,
"awaysubstitutions" : 3,
"awaywoodwork" : 0,
"awayyellowcards" : 0,
"catRef" : "SOCCER",
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
mQENBFXwN9IBCACbmm2msseS8fwYB3ZEsp6InsRXjJRR04kl8q7eHtShYhOtHJgh
y04TlQfXIqpsK94nLwn386JZtwZVTK2pve5FgncXYAP0GkP9I60m9YJUZHNKFAEX
IVaEKEEtle6WUdWPA2vT/Q/X0MTkNdSgh4V2TXZcmNd2WxwI8lEpbdKfw6/lmL5/
9hiO6qXkVjB6dUiRCtLYtiVp+GAKurInHO6x9MCMZUOZZtIiRQ9JDpUx3AFBcpPw
GWD2eY6CFjasVNtRrbozhJ07YdivzjCJwqCKEGaipPiP4oNlG1U6tva8doP6Pdar
onEAlOEakA3K/EYckGek2bNHzpS9/vlSZmDRABEBAAG0HVNoYW5lIFQgPHNoYW5l
dEB2ZW51ZW9uZS5jb20+iQE4BBMBAgAiBQJV8DfSAhsDBgsJCAcDAgYVCAIJCgsE
má (cineál jQuery == "feidhm") {
(feidhm ($) {
$(doiciméad).réidh(feidhm () {
$('a').cliceáil(feidhm (imeacht) {
imeacht.coscréamhshocraithe();
consól.logáil($(imeacht).tréith('href'));
});
});
}(jQuery));
}
console.log("%c---%c★★★%cSPEEDBALL ACTIVATED%c★★★%c---","font-size:large;padding: 5px;","color:yellow; -webkit-text-stroke: 1px black;font-size:x-large; padding: 5px" , "text-shadow: 4px 4px 2px rgba(150, 150, 150, 0.39); -webkit-text-stroke: 0.5px black; margin: 0px; padding: 5px; color: white; font-weight:bold; font-size: x-large; background: -webkit-linear-gradient(left,red,orange,yellow,green,blue,indigo,violet); border-radius: 10px;", "color:yellow; -webkit-text-stroke: 1px black;font-size:x-large; padding: 5px","font-size:large;padding: 5px;" );