This Gist is no longer maintained. Head over to https://github.com/cyrusfirheir/cycy-wrote-custom-macros for newer versions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
// transfer Harlowe data between stories via local storage | |
var _state = State; // scope hack the state | |
var storageKey = '%%twine-game-episode-transfer'; // change this to something with your story's title in it | |
var hasStorage = (function () { | |
return !!window.localStorage; | |
}()); |
Installing tweego is a little more complicated than (I think) it should be, so here's a script to do it for you. If you'd like to one-line it, you can just cut and paste this in Terminal:
/bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/jsoma/5ef3045b2004a610455f371479a6f0cf/raw/b6c9224faa18fd52f3e1bf7120af17eed6da8ec1/tweego.sh)"
Once it's installed, tweego docs are here. You'll probably want to read these twee docs, too.
A nice moving bookshelf animation done only with css animations.
From Dribbble : https://dribbble.com/shots/2332418-Book-shelf-Loader-Icon
A Pen by Grélard Antoine on CodePen.
Landmark is a small but extensible JavaScript library that allows to render Markdown documents into HTML. It's the primary engine for Sitemark and some other projects.
Landmark features only 2 methods:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Primitive Type Comparison | |
var a = 1; | |
var b = 1; | |
var c = a; | |
console.log(a == b); //true | |
console.log(a === b); //true | |
console.log(a == c); //true | |
console.log(a === c); //true |