Skip to content

Instantly share code, notes, and snippets.

View tvl83's full-sized avatar

Thomas Le tvl83

  • Reality Flux, LLC
  • Oklahoma City, OK
  • X @tvl83
View GitHub Profile
@tvl83
tvl83 / gist:e5a5c9f4cb5295439ca48825566048d0
Created October 28, 2022 20:07 — forked from nodesocket/gist:3919205
All world timezones in an HTML select element
<select name="timezone_offset" id="timezone-offset" class="span5">
<option value="-12:00">(GMT -12:00) Eniwetok, Kwajalein</option>
<option value="-11:00">(GMT -11:00) Midway Island, Samoa</option>
<option value="-10:00">(GMT -10:00) Hawaii</option>
<option value="-09:50">(GMT -9:30) Taiohae</option>
<option value="-09:00">(GMT -9:00) Alaska</option>
<option value="-08:00">(GMT -8:00) Pacific Time (US &amp; Canada)</option>
<option value="-07:00">(GMT -7:00) Mountain Time (US &amp; Canada)</option>
<option value="-06:00">(GMT -6:00) Central Time (US &amp; Canada), Mexico City</option>
<option value="-05:00">(GMT -5:00) Eastern Time (US &amp; Canada), Bogota, Lima</option>
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class danger1rotation : MonoBehaviour {
{
public Transform speed = 10.0f; //this is for normal speed
public Transform Jumpspeed = 20.9f; //this is for jump speed
public Transform slowspeed = 05.00f; //this is for the slow speed
public Transform fastspeed = 40.00f; // this is for the fast speed
using System;
public class loc : Monobehaviour
{
/*sir this code is all about
when my character touches the touchingGameobject object
it will destroy player aftee 30s
*/
public Transform touchingGameobject;
public Transform player;
@tvl83
tvl83 / devnet.md
Last active January 6, 2021 01:46 — forked from blockpane/devnet.md
FIO Devnet

FIO devnet

  1. I recommend creating a seperate user account for this, only used for running a dev net.
  2. Must be on Ubuntu 18.04
  3. User will require sudo access for part of the install.

Get code

In the user's home directory clone the following four repositories, suggest using the Develop branch for each:

Keybase proof

I hereby claim:

  • I am tvl83 on github.
  • I am tvle83 (https://keybase.io/tvle83) on keybase.
  • I have a public key ASAP4-ZejZIptd-pUCI-txSUYlgx8gyFH8OYsJ43SloHCAo

To claim this, I am signing this object:

@tvl83
tvl83 / transactions.js
Created October 1, 2017 03:43
transaction schema for blockchain explorer
let mongoose = require('mongoose');
const arrayUniquePlugin = require('mongoose-unique-array');
const voutsArraySchema = mongoose.Schema({
txid: String,
n: Number,
value: Number,
time: Number,
address: String
});
@tvl83
tvl83 / calc.cpp
Created August 4, 2017 01:25
purely aesthetic but this is what i mean about the formatting of the case statement.
switch(name){
case '/':
result = (float)x / (float)y;
printf("&.3f\n");
break;
case '*':
result = (float)x * (float)y;
printf("&.3f\n");
break;
@tvl83
tvl83 / ion.js
Created July 30, 2017 05:41
I am trying to make a file like https://github.com/tvl83/coininfo/blob/master/lib/coins/btc.js for ION. Please help by updating this with the right information. I know to look https://github.com/ionomy/ion/blob/master/src/chainparams.cpp but I don't know where to find all the information
/*
info from:
https://github.com/ionomy/ion/blob/master/src/chainparams.cpp
*/
var assign = require('object-assign')
var common = {
name: 'Ion',
per1: 1e8,
obj: { title: /.*@followbtcnews.*/i,
'$or': [ { body: /.*@followbtcnews.*/i } ] }
stringify: {"title":{},"$or":[{"body":{}}]}
parsed: { title: {}, '$or': [ { body: {} } ] }
{ title: /.*@followbtcnews.*/i,
'$or': [ { body: /.*@followbtcnews.*/i } ] }