- sketch (für so ziemlich alles)
- framer (fürs prototypen)
- marvel (fürs prototypen ohne code)
- quickcast (für die videos)
- keynote (für die präsentationen)
- macdown (für die doku)
- dropbox (für die zusammenarbeit und hosting der videos und so)
- imgur (für das hosten der bilder in der doku)
- google docs (für die erstellung der graphen aus projekt 2)
- lightroom 5, vsco film 06, und canon 600d (für die richtig hippen perspective shots)
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
import sys | |
from cactus.template_tags import register | |
# Easy including of CSS inside HTML (faster for smaller sites). | |
# Usage: {% print_file "path/to/stylesheet.css" %} | |
@register.simple_tag | |
def print_file(path): | |
try: | |
file = open(path).read().decode() |
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
{ | |
"name": "plugin", | |
"description": "plugin description.", | |
"devtools_page": "plugin.html", | |
"permissions": [ | |
"http://*/*", | |
"https://*/*" | |
], | |
"manifest_version": 1, | |
"version": "1" |
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
import React from 'react'; | |
class Columns extends React.Component { | |
render() { | |
var columnFirst = [] | |
var columnSecond = [] | |
this.props.nodes.map(function(node, index) { | |
if(index % 2 == 0) { | |
columnFirst.push(node) | |
} else { |
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
var Example = React.createClass({ | |
render: function() { | |
return( | |
React.createElement('div', null, 'Hello from the other side!') | |
); | |
} | |
}); |
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
const objHasProps = (obj, props) => { | |
const check = props.map(prop => prop in obj) | |
return check.indexOf(false) === -1; | |
} | |
const obj = { a: 1, b: 2, c: 3 }; | |
if (objHasProps(obj, ['a', 'c'])) { | |
// ... |
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
import React from 'react'; | |
import { CSSTransition, TransitionGroup } from 'react-transition-group'; | |
export const replaceComponentRenderer = ({ props }) => { | |
const children = React.createElement(props.pageResources.component, props); | |
return ( | |
<div> | |
<TransitionGroup> | |
<CSSTransition key={props['*']} timeout={200} classNames="fade"> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
const getUserConfirmation = (location, callback) => { | |
const [newUrl, action] = location.split('|'); | |
// Check if user wants to navigate to the same page. | |
// If so, we don't want to trigger the page transitions. | |
// We have to check the `action`, because the pathnames | |
// are the same when going back in history 🤷 | |
const currentUrl = `${window.location.pathname}${window.location.search}`; | |
if (newUrl === currentUrl && action === 'PUSH') { | |
callback(false); |
OlderNewer