Skip to content

Instantly share code, notes, and snippets.

View JonathanTech's full-sized avatar

Jonathan Ross JonathanTech

View GitHub Profile
@JonathanTech
JonathanTech / Magicats.json
Created October 31, 2021 03:02
Magicats Raw Json
This file has been truncated, but you can view the full file.
{
"0": {
"name": "Barbarian Thomas",
"description": "Magicats is SpookySwap's Genesis NFT collection of 5000 randomly generated magical cats!",
"image": "ipfs://QmbtKxGJiKHYesewhsW2RKqC7BRLLeYzxtEfzcdhL7JZQ8",
"attributes": [
{
"trait_type": "Background",
"value": "Green"
},

Keybase proof

I hereby claim:

  • I am jonathantech on github.
  • I am jontech (https://keybase.io/jontech) on keybase.
  • I have a public key ASBINWHQ4VyRkN-TahnAJqhW5puizbkubqhWH0XJxuTEwgo

To claim this, I am signing this object:

@JonathanTech
JonathanTech / debugging.js
Created March 28, 2017 16:22
Used for the presentation of Node.js debugging features
const util = require('util');
const assert = require('assert');
let complexObject = {complex: {object: {that: {is: ['really', 'deeply', {nested: ':('}]}}}};
debugger;
assert(complexObject !== null)
try{
##
# Creates an alias called "git hist" that outputs a nicely formatted git log.
# Usage is just like "git log"
# Examples:
# git hist
# git hist -5
# git hist <branch_name>
# git hist <tag_name> -10
##
git config --global alias.hist "log --pretty=format:'%C(yellow)[%ad]%C(reset) %C(green)[%h]%C(reset) | %C(red)%s %C(bold red){{%an}}%C(reset) %C(blue)%d%C(reset)' --graph --date=short"
@JonathanTech
JonathanTech / index.html
Created December 8, 2014 22:02
Stack overflow - prevent parent div from resizing when child div resizes // source http://jsbin.com/cuwihesavo
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Stack overflow - prevent parent div from resizing when child div resizes" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
.adminContent {
background-color:lightgreen;
@JonathanTech
JonathanTech / InstallWindowsFeatures.bat
Last active June 9, 2019 13:33
My Current install batch for Chocolatey
choco windowsfeatures TelnetClient
choco windowsfeatures WindowsGadgetPlatform
choco windowsfeatures IIS-WebServerRole
choco windowsfeatures IIS-WebServer
choco windowsfeatures IIS-CommonHttpFeatures
choco windowsfeatures IIS-HttpErrors
choco windowsfeatures IIS-ApplicationDevelopment
choco windowsfeatures IIS-Security
choco windowsfeatures IIS-URLAuthorization
choco windowsfeatures IIS-RequestFiltering
@JonathanTech
JonathanTech / Install_Choc.bat
Last active August 29, 2015 14:07
Installs Chocolatey behind a proxy using the machines default proxy settings.
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex (& {$x = (new-object net.webclient); $x.Proxy.Credentials=[System.Net.CredentialCache]::DefaultNetworkCredentials; return $x.DownloadString('https://chocolatey.org/install.ps1')})" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
.directive('clickOutside', ['$parse', function ($parse) {
return {
restrict: 'A',
link: function link(scope, iElement, iAttrs) {
var eventHandler = $parse(iAttrs.clickOutside),
clickEvalFunction = function (e) {
var container = $(iElement);
if (!container.is(e.target) // if the target of the click isn't the container...
&& container.has(e.target).length === 0) // ... nor a descendant of the container
{