Skip to content

Instantly share code, notes, and snippets.

View rootscript's full-sized avatar

Carlos rootscript

  • UK
View GitHub Profile
@rootscript
rootscript / framerSnippets01.coffee
Created November 1, 2017 00:42
[Framer Snippets 01] useful bits & pieces #framer #snippets
Utils.insertCSS('@import url(http://fonts.googleapis.com/css?family=Pacifico)')
PacificoLayer = new Layer
html: "This is Pacifico"
style: { fontFamily: "Pacifico" }
Utils.insertCSS('@import url(http://fonts.googleapis.com/css?family=Rozha+One);')
RozhaOneLayer = new Layer
html: "This is Rozha One"
@rootscript
rootscript / Json2li.elm
Last active October 18, 2016 00:50 — forked from freakingawesome/so-35028430.elm
How to extract the results of Http Requests in 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
rootscript / elm-destructuring.md
Last active December 15, 2021 20:44 — forked from yang-wei/destructuring.md
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 !

Tuple

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

let
  (a,b,c) = myTuple
@rootscript
rootscript / homebrew-commands.sh
Last active October 8, 2016 22:19
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
rootscript / private.xml
Last active May 26, 2020 18:22 — forked from mlan3/private.xml
Karabiner private.xml for non-Apple keyboard to toggle Target Display Mode
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>LOGITECH_K811</productname>
<productid>0xb317</productid>
@rootscript
rootscript / gulp-explained.md
Last active November 18, 2017 00:36
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
rootscript / ToDo.md
Last active August 29, 2015 14:17
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
@rootscript
rootscript / testjson01
Last active August 29, 2015 14:17
testjson
[{ Name: "John", Salary: £30000 },{ Name: "Tom", Salary: £90000 },{ Name: "Sue", Salary: £87000 }]
@rootscript
rootscript / rw6-release-notes.md
Last active August 29, 2015 14:17
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.