Skip to content

Instantly share code, notes, and snippets.

View brennhill's full-sized avatar

Brenn Hill brennhill

View GitHub Profile
@brennhill
brennhill / helpful-dev-thingies
Last active May 24, 2019 10:29
Links to Helpful things
Git Power Tools:
https://nvie.com/posts/git-power-tools/
Git FLow Things:
https://github.com/nvie/gitflow
https://github.com/bobthecow/git-flow-completion
Shell enhancements:
Useful Apps:
Type Specialty Use Cases
C5 Computation oriented The C series is all about raw CPU power. Calculation heavy applications can benefit
D2 Disk IO High sequential read and write access to very large data sets, such as Hadoop distributed computing
F FPGA Anayltics, big data, specialized research
G3 Graphics Video encoding, 3D rendering, some cryptography
H1 High disk speed high disk throughput and high sequential disk I/O access to very large data sets. MapReduce workloads
I3 High speed storage Data warehousing and Big Data
M4/M5 General purpose Bigger, badder versions of the T series. The differences between the M and T series are more subtle than raw specs.
P3 GPU/Graphics Similar to G3 but oriented entirely around GPUs. Used for crypto mining, Machine learning, etc
R4 Memory instensive Apps that require in-memory instensive applications
// ES5
function myFunctionES5(name, location, food) {
var myName = name || "Default Name";
var myLocation = location || "New York";
var myFood = food || "Pizza plz";
console.log({
name:myName,
location:myLocation,
food:myFood
})
pragma solidity ^0.4.18;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
contract ERC20 {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
pragma solidity ^0.4.18;
/**
* @title ERC721 Non-Fungible Token Standard basic interface
* @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
contract ERC721Basic {
event Transfer(address indexed _from, address indexed _to, uint256 _tokenId);
event Approval(address indexed _owner, address indexed _approved, uint256 _tokenId);
event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved);
0xbd240187cdA125E6FD7b273699A386882950E89F
@brennhill
brennhill / aem_repo_check.sh
Created September 6, 2016 13:25 — forked from jayankandathil/aem_repo_check.sh
Script to Trigger Repository Check in AEM 6.0 and 6.1 CRX3
#!/bin/bash
# Bash script to run AEM 6.0 and 6.1 Repository Check
# Author : Jayan Kandathil
# Version : 0.1
# Last updated : July 6, 2015
# Instructions : Copy to CQ's /bin folder, make necessary changes, enable the execute bit and run