Skip to content

Instantly share code, notes, and snippets.

James Robert Perih hotdang-ca

Block or report user

Report or block hotdang-ca

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
hotdang-ca / example.js
Created Jul 16, 2019
CamelCase to Camel Case
View example.js
console.log("JamesPerihIsCool".replace(/(?<!^)(?=[A-Z])/g, ' '));
hotdang-ca / FreeCurrencyConverterService.cs
Created Nov 6, 2018
C# Service Wrapper around FreeCurrencyConverterApi
View FreeCurrencyConverterService.cs
using System;
using System.Collections.Generic;
using System.Net;
using System.Web.Script.Serialization;
namespace App.Service.Services
public class FreeCurrencyConverterService : IFreeCurrencyConverterService
private readonly String BASE_URI = "";
hotdang-ca / Keypad.tsx
Last active Aug 23, 2018
Numeric Keypad in TypeScript React
View Keypad.tsx
import * as React from 'react';
import { KeypadKey } from './KeypadKey';
import './styles.less';
export interface IKeypadProps
onKeyPressed: (keyPressed: KeypadKeys) => void;
hotdang-ca / distance.go
Last active Jun 29, 2018
Golang code to calculate distance between two lat/lng decimal coordinates.
View distance.go
package main
import (
//::: :::
//::: This routine calculates the distance between two points (given the :::
View chat-frontend.js
"use strict";
// for better performance - to avoid searching in DOM
const inputElement = document.getElementById('input');
const contentElement = document.getElementById('content');
const statusElement = document.getElementById('status');
// my color assigned by the server
var myColor = false;
// my name sent to the server
hotdang-ca / DetectAdBlock.js
Last active Oct 11, 2019
Detect AdBlockers from a React Component
View DetectAdBlock.js
* Detect Ad Blockers
* Copyright (c) 2017, 2019 Four And A Half Giraffes, Ltd.
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
You can’t perform that action at this time.