Skip to content

Instantly share code, notes, and snippets.

@jdaly13
jdaly13 / wordgame.html
Created March 17, 2015 19:30
word Game HTML setup
<div id="WordGAME" class="module moduColor_Dark hangman_jury" >
<div class="grid-container">
<div class="loader">Loading</div>
<div class='hide'>
<h2 class="module-header">Who Am I?</h2>
<div class="social">
<div class="currentScore">
<span>Correct</span>
<b>0</b>
</div>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@jdaly13
jdaly13 / Logged.js
Created August 9, 2019 04:42
Logged.js
import React from 'react';
import SideMenu from './SideMenu';
import Icon from 'react-native-vector-icons/Ionicons';
import {createDrawerNavigator, createStackNavigator, createAppContainer} from 'react-navigation'
import {Dimensions, Text} from "react-native";
var {height, width} = Dimensions.get('window');
import HomeScreen from '../screens/Home';
import ExercisesScreen from '../screens/Exercises';
function myFavoriteThingsEachCity (sport, landmark, food) {
const object = {};
object[this.constructor.name]= {
team: this.sportsTeams[sport],
landMarks: this.landmarks[landmark],
food: this.bestFoods[food]
}
return object
}
@jdaly13
jdaly13 / campaign.js
Created April 28, 2020 20:38
react application for donating on ethereum blockchain part of ethereum-blockchain-developing-applications tutorial on pluralsight
import React, { Component } from 'react';
import { Button, Input, Table } from 'semantic-ui-react'
import { createContract } from './../ethereum/crowdfundingContract'
import { web3 } from './../ethereum/web3';
export class Campaign extends Component {
ONGOING_STATE = '0'
FAILED_STATE = '1'
SUCCEEDED_STATE = '2'
@jdaly13
jdaly13 / index.js
Created June 17, 2020 22:16
logging out errors
import assert from 'assert';
import uuid from 'uuid';
import btoa from 'btoa';
import _ from 'lodash';
import randomName from 'node-random-name';
import {request} from '@webex/http-core';
const BASE_PATH_SECURE = '/users/test_users_s';
const BASE_PATH = '/users/test_users';
/*
Implements EIP20 token standard: https://github.com/ethereum/EIPs/issues/20
.*/
pragma solidity >=0.4.21 <0.7.0;
import "../installed_contracts/tokens/contracts/eip20/EIP20Interface.sol";
contract WWTtoken is EIP20Interface {
uint256 constant MAX_UINT256 = 2**256 - 1;
@jdaly13
jdaly13 / genesis.json
Last active September 4, 2020 16:29
genesis sample
{
"config": {
"chainId": 8572054696,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
@jdaly13
jdaly13 / listening to visibility state on each setInterval
Last active January 7, 2022 15:37
polling with pagelifecyle api
React.useEffect(() => {
const id = setInterval(() => {
if (document.visibilityState === 'visible') {
liveData.load("/drops");
}
}, 10000);
return () => clearInterval(id);
}, []);
@jdaly13
jdaly13 / a.json
Last active January 7, 2022 16:44
discord server data
[
{
"id":"770287896669978684",
"name":"Remix",
"icon":"e1e3ff1c3519034de5b462ee06e3b6f9",
"owner":false,
"permissions":104189505,
"features":[
"ENABLED_DISCOVERABLE_BEFORE",
"SEVEN_DAY_THREAD_ARCHIVE",