Skip to content

Instantly share code, notes, and snippets.

View Raphdon832's full-sized avatar

Ryan Raphael Raphdon832

  • UrbanDev Studio
  • Abuja, Nigeria
View GitHub Profile
@dev-opus
dev-opus / better.js
Last active August 8, 2024 12:10
better error handling method for asynchronous javascript programming
/*
so uhm, up until about a week ago, my
defacto method for handling errors in an
async/await program-flow was to wrap my
entire code-block in a try/catch; performing
the operations in the `try {}` block and
handling any errors in the `catch(err) {}` block.
it worked well, but it didn't sit well with me
@manuerumx
manuerumx / postJSON.cs
Last active October 20, 2021 05:39
Unity 3D example POST JSON Data to a Server with http Auth
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class goLevel : MonoBehaviour {
//With the @ before the string, we can split a long string in many lines without getting errors
private string json = @"{
'hello':'world',
'foo':'bar',
'count':25