Skip to content

Instantly share code, notes, and snippets.

View carlrosell's full-sized avatar
🎯
Focusing

Carl Rosell carlrosell

🎯
Focusing
View GitHub Profile
@carlrosell
carlrosell / delta_starter_template.html
Last active September 28, 2015 06:34
This is a starter template for Delta HTML5 ads.
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
try{ $$preamble$$ }catch(e){}
if (typeof(window.HTML5) == "undefined") {
var p = "https:" == document.location.protocol ? "https:" : "http:";
document.write("<scr"+"ipt src=\""+p+"//sting.de17a.com/html5.js\"></scr"+"ipt>");
} else { window.HTML5.boot(window, window.Sting); }
</script>
str.replace(/^(.*ext\d+|xfs)(\W+)(((?!noatime).)+)$/gm, '$1$2noatime,$3');

Keybase proof

I hereby claim:

  • I am carlrosell on github.
  • I am carlrosell (https://keybase.io/carlrosell) on keybase.
  • I have a public key ASDEXRSzAJ3VGc9mkdxYQ_y33FJHv3ZtOqGnBF58wDOFKgo

To claim this, I am signing this object:

@carlrosell
carlrosell / test.svg
Last active April 13, 2018 11:08
svg image in image
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@carlrosell
carlrosell / getColorForPercentage.js
Created May 9, 2018 09:40
getColorForPercentage.js
const isBiggerThan = (value) => (a) => a > value;
const getColorForPercentageFunction = (colorList) => {
const colors = colorList.sort((a, b) => a.value - b.value);
return ((value) => {
const foundIndex = colors.map((a) => a.value).findIndex(isBiggerThan(value));
const index = foundIndex !== -1 ? foundIndex : colors.length - 1;
const lower = colors[index - 1];
@carlrosell
carlrosell / manifest.json
Created May 29, 2020 11:44
Firefox color theme
{
"manifest_version": 2,
"version": "1.0",
"name": "Carl Rosell Theme",
"theme": {
"images": {},
"properties": {},
"colors": {
"toolbar": "rgb(26, 64, 84)",
"toolbar_text": "rgb(243, 243, 243)",