Skip to content

Instantly share code, notes, and snippets.

@CoolCatsNFTPublic
CoolCatsNFTPublic / estimatingGas.js
Last active December 30, 2021 20:50
Estimating gas for a transaction
// Get the estimated gas from the adopt method
try {
methodGasPrice = await this.contract.methods.adopt(adoptNum).estimateGas({
value: price,
from: account
});
} catch (err) {
console.log("ERROR Method Gas Price");
}
// Bootstrap Mid-Small - col-ms-* - the missing grid set for Bootstrap3.
//
// This is a hack to fill the gap between 480 and 767 pixels - a missing range
// in the bootstrap responsive grid structure. Use these classes to style pages
// on cellphones when they transition from portrait to landscape.
//
// Contains:
// Columns, Offsets, Pushes, Pulls for the Mid-Small layout
// Visibility classes for the Mid-Small layout
// Redefined visibility classes for the Extra Small layout
@funkjedi
funkjedi / marionette.handlebars.js
Last active April 5, 2024 14:29
Integrates Handlebars with Marionette. First attempts to load pre-compiled templates, then by selector, and finally via XHR.
/**
Usage: Just include this script after Marionette and Handlebars loading
IF you use require.js add script to shim and describe it in the requirements
*/
(function(Handlebars, Marionette) {
Marionette.Handlebars = {
path: 'templates/',
extension: '.handlebars'
};
@monkey-za
monkey-za / README.md
Last active December 11, 2015 09:19 — forked from agnoster/README.md

agnoster.zsh-theme

Standard agnoster.zsh-theme, the only changes I made wat to fix the prompt location when using auto complete

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
@guidosabatini
guidosabatini / XCDFakeCarrier.m
Created November 13, 2012 16:33 — forked from 0xced/XCDFakeCarrier.m
Hack to choose the displayed carrier name in the iOS simulator, now working in iOS 5 and iOS 6 (with different carrier names)
//
// Copyright (c) 2012 Cédric Luthi / @0xced. All rights reserved.
//
#if TARGET_IPHONE_SIMULATOR
#define ITEMISENABLED_LENGHT_IOS5 23
#define ITEMISENABLED_LENGHT_IOS6 24
#define STATUSBARBATATYPEENCODING_IOS5 "^{?=[23c][64c]ii[100c]"
#define STATUSBARBATATYPEENCODING_IOS6 "^{?=[24c][64c]ii[100c]"
@agnoster
agnoster / README.md
Last active April 6, 2024 22:35
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

@nilium
nilium / key-bindings.json
Created August 11, 2012 23:14
A Sublime Text 2 plugin to enable running multiple commands in any given context from a single key binding.
[
{
"keys": ["ctrl+w"],
"command": "run_multiple",
"args": {
"commands": [
{"command": "find_under_expand", "args": null, "context": "window"},
{"command": "show_panel", "args": {"panel": "find"}, "context": "window"}
]
}
@twosixcode
twosixcode / gist:1988097
Created March 6, 2012 18:40
Make "Paste and Indent" the default paste in Sublime Text 2
// swap the keybindings for paste and paste_and_indent
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" }