Skip to content

Instantly share code, notes, and snippets.

@onebytegone
onebytegone / gifize.sh
Created June 8, 2018 15:01
Screen capture video to GIF converter
#!/bin/bash
# usage: ./gifize.sh -x left -y top image.gif
X_POS_LEFT='10'
X_POS_RIGHT='(w-text_w-10)'
Y_POS_TOP='10'
Y_POS_BOTTOM='(h-text_h-10)'
X_POS=$X_POS_LEFT
@onebytegone
onebytegone / jquery-webcomponents-conflict.html
Last active March 2, 2018 20:11
Demo of conflict between jQuery and webcomponent.js in Chromecast framework
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Demo of conflict between jQuery and webcomponent.js in Chromecast framework</title>
<link href="https://unpkg.com/[email protected]/dist/video-js.css" rel="stylesheet">
<script src="https://unpkg.com/[email protected]/dist/video.js"></script>
<script>
window.SILVERMINE_VIDEOJS_CHROMECAST_CONFIG = {
preloadWebComponents: true,
@onebytegone
onebytegone / SassMeister-input.scss
Created April 23, 2015 15:23
SCSS to control state colors
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
@mixin stateColor($normal, $hover:"") {
background-color: $normal;
@if $hover != '' {
&:hover {