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
'use strict'; | |
var angular = require('angular'), | |
app = angular.module('app', []); | |
require('./components/user/user-model'); | |
app.controller('UserIndex', ['$scope', 'User', function($scope, User){ | |
$scope.users = []; |
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(){ | |
'use strict'; | |
angular.module('welbe-auth', ['ui.router']); | |
angular.module('welbe-auth').config([ | |
'$httpProvider', | |
'$stateProvider', | |
'$urlRouterProvider', | |
'authProvider', |
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
angular.module('tracker', []) | |
angular.module('tracker').factory 'Mixpanel', () -> | |
class Mixpanel | |
specialProperties: ['first_name', 'last_name', 'name', 'email', 'created'] | |
isAvailable: () -> | |
window.mixpanel? | |
identify: (userId, traits={}) -> |
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
:root { | |
--pipColor: #999; | |
--pipSize: 8px; | |
--pipSpacing: 3px; | |
} | |
@keyframes pulse { | |
0%, 80%, 100% { | |
transform: scale(0.8); | |
opacity: 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
class TestComponent extends Component() { | |
handleClick(evt) { | |
console.log(evt) | |
} | |
render() { | |
return <button onClick={e => this.handleClick(e)}>Click Me</button> | |
} | |
} |
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, { useEffect, useLayoutEffect, useRef } from "react"; | |
import ReactDOM from "react-dom"; | |
import PropTypes from "prop-types"; | |
import "./Modal.css"; | |
const Modal = props => { | |
const ref = useRef(); | |
useFocusLock(ref); |
I hereby claim:
- I am danethurber on github.
- I am danethurber (https://keybase.io/danethurber) on keybase.
- I have a public key ASDRR3XhbflYwnJ3FxS9mDJCQKstImEDOs5ozwPY_frcgAo
To claim this, I am signing this object:
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
// usage: Summon @token @unique "Token Name" 1 | |
const macroArgs = args; | |
const FLAG_NAME = 'dae'; | |
const sleep = (ms = 0) => new Promise(r => setTimeout(r, ms)); | |
const randomNum = (min, max) => Math.random() * (max - min) + min; | |
async function start() { | |
const [toggleState, tokenId, uniqueId, tokenName, count] = macroArgs; |