Skip to content

Instantly share code, notes, and snippets.

Avatar

Carlos rootscript

  • UK
View GitHub Profile
@rootscript
rootscript / framerSnippets01.coffee
Created Nov 1, 2017
[Framer Snippets 01] useful bits & pieces #framer #snippets
View framerSnippets01.coffee
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 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
rootscript / elm-destructuring.md
Last active Dec 15, 2021 — forked from yang-wei/destructuring.md
Elm Destructuring (or Pattern Matching) cheatsheet
View elm-destructuring.md

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 Oct 8, 2016
just some commands for a medium article about homebrew
View homebrew-commands.sh
#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 — forked from mlan3/private.xml
Karabiner private.xml for non-Apple keyboard to toggle Target Display Mode
View private.xml
<?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 Nov 18, 2017
gulp - the basics - getting started from scratch
View gulp-explained.md

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 Aug 29, 2015
Mac Mini 2014
View ToDo.md
  • 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
rootscript / rw6-release-notes.md
Last active Aug 29, 2015
Notes: rapidweaver updates
View rw6-release-notes.md

###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.