Skip to content

Instantly share code, notes, and snippets.

View SamMakesCode's full-sized avatar

Sam Littler SamMakesCode

View GitHub Profile
@SamMakesCode
SamMakesCode / User Devices.md
Last active July 13, 2018 13:53
User Devices
Version User Count
12.0 56
11.4.1 81
11.4 2246
11.3.1 1378
11.3 236
11.2.6 111
11.2.5 41
11.2.2 28
<!DOCTYPE html>
<html lang="en">
<body>
<!-- In programming you can pass arguments to your functions like this... -->
<script>
function setUserNameTo(name) {
// Do some stuff
}
setUserNameTo('John');
<!DOCTYPE html>
<html lang="en">
<body>
<!-- In programming you can pass arguments to your functions like this... -->
<script>
function setUserNameTo(name) {
// Do some stuff
}
setUserNameTo('John');
<?php
/**
* @author CMDR SamMakesCode
*/
$phrase = "To the jewel that burns on the brow of the mother of galaxies! To the whisperer in witchspace, the siren of the deepest void! The parent's grief, the lover's woe, and the yearning of our vagabond hearts. To Raxxla!";
// Remove non-alpha characters
$phrase = str_replace(' ', '', $phrase);
@SamMakesCode
SamMakesCode / firebase-cheatsheet.js
Created February 1, 2022 14:51
Firebase cheatsheet
// Firebase setup
const admin = require('firebase-admin');
admin.initializeApp(
// Your settings
)
const db = admin.firestore()
// Add a document to a collection
@SamMakesCode
SamMakesCode / .git...HEAD
Created December 30, 2022 11:56
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
ref: refs/heads/main