Choose your colour!
A bauble toggle made with SVG in ReactJS with GreenSock.
| import React from 'react' | |
| import CoolShiz from './CoolShiz' | |
| class App extends React.Component { | |
| render() { | |
| return <CoolShiz>{() => 'This is just returned as a string.'}</CoolShiz> | |
| } | |
| } | |
| export default App |
| import React, { Component } from "react"; | |
| import firebase from "../firebase.js"; | |
| const imageRef = muhImage => { | |
| firebase | |
| .storage() | |
| .ref() | |
| .child("images/" + muhImage) | |
| .getDownloadURL() | |
| .then(function(url) { |
| import React, { Component } from "react"; | |
| import SearchBar from "./SearchBar"; | |
| import AddImageForm from "./AddImageForm"; | |
| import Images from "./Images"; | |
| import firebase from "../firebase"; | |
| const itemsRef = firebase.database().ref("images"); | |
| class Archive extends Component { | |
| constructor(props) { |
| console.log("It's Looog, it's Loooog"); |
| // Complex type | |
| var Complex = function (real, imag) { | |
| if (real instanceof Complex) return real; | |
| imag = imag || 0; | |
| return Object.freeze(Object.create(Complex.prototype, { | |
| real: {value: real, enumerable: true}, | |
| imag: {value: imag, enumerable: true}, | |
| })); | |
| }; | |
| Complex.fromPolar = function (r, theta) { |
| [{"url":"https://anapioficeandfire.com/api/books/1","name":"A Game of Thrones","isbn":"978-0553103540","authors":["George R. R. Martin"],"numberOfPages":694,"publisher":"Bantam Books","country":"United States","mediaType":"Hardcover","released":"1996-08-01T00:00:00","characters":["https://anapioficeandfire.com/api/characters/2","https://anapioficeandfire.com/api/characters/12","https://anapioficeandfire.com/api/characters/13","https://anapioficeandfire.com/api/characters/16","https://anapioficeandfire.com/api/characters/20","https://anapioficeandfire.com/api/characters/27","https://anapioficeandfire.com/api/characters/31","https://anapioficeandfire.com/api/characters/38","https://anapioficeandfire.com/api/characters/39","https://anapioficeandfire.com/api/characters/40","https://anapioficeandfire.com/api/characters/41","https://anapioficeandfire.com/api/characters/42","https://anapioficeandfire.com/api/characters/46","https://anapioficeandfire.com/api/characters/54","https://anapioficeandfire.com/api/character |
| console.log(document.domain); | |
| console.log('Attacked with XSS!'); |
| <link href="https://fonts.googleapis.com/css?family=Oswald" rel="stylesheet"> | |
| <p>Could you fucking not?</p> |
| <?php | |
| namesapce Baughss\Core; | |
| class Router { | |
| } |