Skip to content

Instantly share code, notes, and snippets.

View jccr's full-sized avatar
🔮
Cooking up some magic

Juan Carlos Corona Romero jccr

🔮
Cooking up some magic
View GitHub Profile
@jccr
jccr / bcct.html
Created July 7, 2017 05:48
Basic Columnized Content Test
<!DOCTYPE html>
<html lang="en">
<head>
<title>Chapter 1 - Loomings</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<style>
html {
overflow: hidden;
margin: 0 !important;
@jccr
jccr / topWindowScript.js
Last active November 21, 2017 19:39
Readium location linking for a Readium reader embedded in an iframe
// Needs URLSearchParams polyfilled for IE
// The most referenced one is this:
// https://github.com/WebReflection/url-search-params
(function () {
// Selector for the iframe element embedding Readium
var readiumIframe = document.querySelector('iframe');
// It's a good idea to focus on the Readium frame.
// This bring it in keyboard focus right away.
@jccr
jccr / h264-vivaldi-linux.md
Created August 26, 2018 20:13 — forked from ruario/h264-vivaldi-linux.md
How to enable HTML5 MP4 (H.264/AAC) video in Vivaldi for Linux, via an alternative FFMpeg library

How to enable HTML5 MP4 (H.264/AAC) video in Vivaldi for Linux, via an alternative FFMpeg library

Intro

The following is a quick guide to get this working on various Linux distros. As a side note, if you have Chrome installed alongside Vivaldi, Netflix should also work after making these changes. Alternatively, use my latest-widevine.sh to fetch and extract Chrome's copy of Widevine, so that it can be used by Vivaldi.

If you don't have working Flash video and need that in addition, please refer to these instructions.

Note: This guide is primarily aimed at users of Vivaldi stable releases. If it does not solve your issues, read this in addition.

@jccr
jccr / latest-widevine.sh
Created August 26, 2018 20:15 — forked from ruario/intro-latest-widevine.md
Fetches the latest Linux Widevine binary so that it can be used by Vivaldi.
#!/usr/bin/env bash
available () {
command -v $1 >/dev/null 2>&1
}
# Make sure we have wget or curl
if available wget; then
SILENT_DL="wget -qO-"
LOUD_DL="wget"
{
"@context": "http://www.w3.org/ns/anno.jsonld",
"id": "http://example.org/anno38",
"type": "Annotation",
"motivation": "commenting",
"creator": {
"id": "http://example.org/user1",
"type": "Person",
"name": "A. Person",
"nickname": "user1"
@jccr
jccr / media-query.css
Created June 6, 2019 23:30 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
<!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>Document</title>
<link href="main.css" rel="stylesheet">
</head>
<body>

Getting ready to Go

A slightly opinionated guide by Juan Corona

A tour of Go

Quick and fun sampling of the language here:

https://tour.golang.org/

@jccr
jccr / 0001-archive-zip-experimental-append-feature.patch
Created March 16, 2020 08:41
golang/go/archive/zip append patch
From 5975979e6d48dca82ec87835fb3d818273d8dfce Mon Sep 17 00:00:00 2001
From: Juan Carlos Corona Romero <c@rlos.email>
Date: Mon, 16 Mar 2020 00:22:59 -0700
Subject: [PATCH] archive/zip: experimental append feature
---
reader.go | 18 ++++++++++
writer.go | 87 +++++++++++++++++++++++++++++++++++++++++++----
writer_test.go | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 191 insertions(+), 6 deletions(-)