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
.center-circle, .upload-circle { | |
margin: 0 auto; | |
margin-top: calc(50% - 300px); | |
} | |
.abs, .upload-circle:before, .upload-circle:after { | |
position: absolute; | |
top: 0; | |
bottom: 0; | |
left: 0; |
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
<!-- <span ng-show="w.FilesToWriteTo.length < 1" class="text-danger">Add some files please before trying anything dumb....Yo cheeky monkey :)</span> | |
<form name="filePathsForm"> | |
<div class="form-group"> | |
<textarea class="form-control" placeholder="Type here to once, write to ALL!" ng-model="w.TextToWrite"></textarea><br> | |
<div class="btn-group"> | |
<button type="button" class="btn btn-default" ng-click="w.paste('content')">Paste</button> | |
<button type="button" class="btn btn-primary" ng-click="w.writeToAll(w.TextToWrite)">Write Bitch!</button> | |
</div> | |
</div> | |
<div class="form-group"> |
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
/* | |
Text to display | |
<div class="dot first"></div> | |
<div class="dot second"></div> | |
<div class="dot third"></div> | |
*/ | |
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 a = { foo: 'bar' }; | |
const b = 'I like cookies'; | |
export const logWithLabel = (content, label, collapsed = false) => { | |
if (__DEVELOPMENT__) { | |
content = Array.isArray(content) ? content : [content]; | |
console[collapsed ? 'groupCollapsed' : 'group'](label.toUpperCase()); | |
content.forEach((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
"み".charCodeAt(0).toString(16); |
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
class MatchWhenAuthorized extends Component { | |
constructor(props) { | |
super(); | |
console.log(props); | |
this.props = props; | |
this.state = { | |
isAuthenticated: false, | |
} | |
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
class Particle { | |
x = Math.random() * canvas.width; | |
y = Math.random() * canvas.height; | |
vx = Math.random(); | |
vy = Math.random(); | |
id; | |
life = 0; | |
maxLife = 40; | |
constructor() { |
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 gradient = ctx.createRadialGradient(50, 30, 0, 40, 40, 50); | |
gradient.addColorStop(0, 'white'); | |
gradient.addColorStop(1, 'black'); | |
ctx.fillStyle = gradient; | |
ctx.beginPath(); | |
ctx.arc(40, 40, 40, 0, Math.PI * 2); | |
ctx.fill(); |
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 { Component } from '@angular/core'; | |
import { DeviceMotion, AccelerationData } from 'ionic-native'; | |
import { NavController, Platform } from 'ionic-angular'; | |
Array['max'] = (array) => Math.max.apply(Math, array); | |
Array['min'] = (array) => Math.min.apply(Math, array); | |
@Component({ | |
selector: 'page-home', |
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 fields = [ | |
{ | |
label: 'First Name', | |
name: 'firstName', | |
required: true, | |
maxLength: 55 | |
}, | |
{ | |
label: 'Last Name', | |
name: 'lastName', |
OlderNewer