Skip to content

Instantly share code, notes, and snippets.

View rootscript's full-sized avatar

Carlos rootscript

  • UK
View GitHub Profile
@rootscript
rootscript / gist:6bf6d5b592cbd2d4335a
Last active August 29, 2015 14:16
--HTML: Template Handlebars
<script id="template" type="text/x-handlebars-template">
</script>
@rootscript
rootscript / gist:1ac7f0162cb39f6e6d8e
Last active August 29, 2015 14:16
--jQuery: Template siaf self-invoking-anonymous-function
(function() {
})();
@rootscript
rootscript / 0_reuse_code.js
Last active August 29, 2015 14:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@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.
@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 / 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 / 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 / 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 / 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 / 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