Skip to content

Instantly share code, notes, and snippets.


Carlos rootscript

  • UK
View GitHub Profile
rootscript /
Created Nov 1, 2017
[Framer Snippets 01] useful bits & pieces #framer #snippets
Utils.insertCSS('@import url(')
PacificoLayer = new Layer
html: "This is Pacifico"
style: { fontFamily: "Pacifico" }
Utils.insertCSS('@import url(;')
RozhaOneLayer = new Layer
html: "This is Rozha One"
rootscript / Json2li.elm
Last active Oct 18, 2016 — forked from freakingawesome/so-35028430.elm
How to extract the results of Http Requests in Elm
View Json2li.elm
import Html exposing (..)
import Html.App exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
import Html.Attributes exposing (..)
import Http
import Task exposing (Task)
import Json.Decode as Json exposing ((:=))
type Msg
rootscript /
Last active Dec 15, 2021 — forked from yang-wei/
Elm Destructuring (or Pattern Matching) cheatsheet

Destructuring(or pattern matching) is a way used to extract data from a data structure(tuple, list, record) that mirros the construction. Compare to other languages, Elm support much less destructuring but let's see what it got !


myTuple = ("A", "B", "C")
myNestedTuple = ("A", "B", "C", ("X", "Y", "Z"))

 (a,b,c) = myTuple
rootscript /
Last active Oct 8, 2016
just some commands for a medium article about homebrew
#Any line starting with the symbol # is a comment to help explain the command below it.
#Use this command to list anything that's installed that has a new version to update to.
brew outdated
#Here I can update all outdated items.
brew upgrade `brew outdated`
#Here I check for updates to Homebrew itself.
brew update
rootscript / private.xml
Last active May 26, 2020 — forked from mlan3/private.xml
Karabiner private.xml for non-Apple keyboard to toggle Target Display Mode
View private.xml
<?xml version="1.0"?>
rootscript /
Last active Nov 18, 2017
gulp - the basics - getting started from scratch

gulp - the basics.

gulp.js = a streaming build system, grunt.js = a task runner, they accomplish the same thing, but in very different ways.

Getting started.

Install gulp as a Global dependency.

npm install -g gulp

Lets get a package json file going:

rootscript /
Last active Aug 29, 2015
Mac Mini 2014
  • TimeMachine backup BackUp & Cloud Storage

  • Connect TimeMachine Drive to LG

  • Think about DropBox account (Sync to macMini or sync to EX2)

  • EX2 has DropBox App (test it out)

Local WebServer Testing

  • SetUp CodeKit
View testjson01
[{ Name: "John", Salary: £30000 },{ Name: "Tom", Salary: £90000 },{ Name: "Sue", Salary: £87000 }]
rootscript /
Last active Aug 29, 2015
Notes: rapidweaver updates

###RapidWeaver 6 6.0.9 (14677) from RapidWeaver 6 6.0.9 (14653) A new version (14677) of RapidWeaver 6 is available - you have 14653. Please update to the latest version, as your problem may have already been fixed.

RapidWeaver 6.0.9 is now available. Here’s a full run-down of the changes in this update:

  • Adds “Re-Publish All Files” option to the Publishing button’s drop-down menu.
  • Fixes a problem that caused sub-pages of blog and photo albums to be constantly re-published.
  • Brings back “Credit RapidWeaver” meta-tag option.