Skip to content

Instantly share code, notes, and snippets.

Juan Carlos Corona Romero jccr

Block or report user

Report or block jccr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jccr
jccr / bcct.html
Created Jul 7, 2017
Basic Columnized Content Test
View bcct.html
<!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 Nov 21, 2017
Readium location linking for a Readium reader embedded in an iframe
View topWindowScript.js
// 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 Aug 26, 2018 — 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
View h264-vivaldi-linux.md

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 Aug 26, 2018 — forked from ruario/intro-latest-widevine.md
Fetches the latest Linux Widevine binary so that it can be used by Vivaldi.
View latest-widevine.sh
#!/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"
View anno-url-test.json
{
"@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 Jun 6, 2019 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
View media-query.css
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View index.html
<!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>
View Getting ready to Go.md

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/

View 0001-archive-zip-experimental-append-feature.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(-)
You can’t perform that action at this time.