Skip to content

Instantly share code, notes, and snippets.

Avatar
🤡
🔫

Josh Ghent joshghent

🤡
🔫
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am joshghent on github.
  • I am joshghent (https://keybase.io/joshghent) on keybase.
  • I have a public key whose fingerprint is 0176 A8D5 896D F7FC CEDD 22B2 F8F3 7646 1CCA 4B50

To claim this, I am signing this object:

View sms-api.yml
openapi: 3.0.0
info:
description: "The SMS API is designed for integration partners to be able to send SMS messages and perform other actions related to SMS through the CloudCall platform"
version: "1.0.0"
title: "SMS API"
contact:
email: "integrations@cloudcall.com"
servers:
- url: https://ng-api.{platform}.cloudcall.com/v3/sms
variables:
View hi.md

◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️:white_medium_sq

View graphite.ts
import { Client } from "node-statsd-client";
import { IGraphiteController } from "../interfaces";
const PREFIX = "MY-API-NAME";
export default class GraphiteController implements IGraphiteController {
private _client: any;
// the graphite port will always be this for every environment
private _port: number = 8125;
private static _instance: GraphiteController;
View router-stage-1.ts
import { Router } from "express";
import { Config } from "./configuration";
// Import or require the graphite controller and activity labels
import { GraphiteController, GraphiteLabel } from "../graphite";
const router = Router() as Router;
// Load your config
const config = Config.getConfig();
View graphite.ts
import { Client } from "node-statsd-client";
import { IGraphiteController } from "../interfaces";
const PREFIX = "MY-API-NAME";
export default class GraphiteController implements IGraphiteController {
private _client: any;
// the graphite port will always be this for every environment
private _port: number = 8125;
private static _instance: GraphiteController;
View main.php
$string = "floccinaucinihilipilification";
// First split the string to an array and then get the unique characters so we don't double count
$characters = array_unique(str_split($string));
$count = [];
// Iterate through the characters list and create an associative array of the characters and their count
foreach($characters as $char) {
$count[$char] = substr_count($string, $char);
View main.php
$string = "floccinaucinihilipilification";
$characters = array_unique(str_split($string));
$count = [];
foreach($characters as $char) {
$count[$char] = substr_count($string, $char);
}
// Order the array
@joshghent
joshghent / main.php
Created Feb 10, 2019
ElatedCuddlyMachinecode created by joshghent - https://repl.it/@joshghent/ElatedCuddlyMachinecode
View main.php
class TestClass {
const aVariable = 'test';
}
echo TestClass::aVariable;
@joshghent
joshghent / Meetup Checklist.csv
Created Dec 22, 2018
Checklist for running a meetup
View Meetup Checklist.csv
TYPE CONTENT PRIORITY INDENT AUTHOR RESPONSIBLE DATE DATE_LANG TIMEZONE
task Month Before: 1 1 Josh (17592616) Josh (17592616) en Europe/London
task Confirm speakers for date 4 2 Josh (17592616) Josh (17592616) every 3rd thursday en Europe/London
task Get speaker twitter handles 4 2 Josh (17592616) Josh (17592616) every 3rd thursday en Europe/London
task Invite speakers to LeicesterJS slack 4 2 Josh (17592616) Josh (17592616) every 3rd thursday en Europe/London
task Get talk titles from speakers 4 2 Josh (17592616) Josh (17592616) every 3rd thursday en Europe/London
You can’t perform that action at this time.