Skip to content

Instantly share code, notes, and snippets.

View erikig's full-sized avatar

Eric Kigathi erikig

  • Uplyft Capital
  • Fairfield County, CT
View GitHub Profile
@erikig
erikig / jquery.wmodeFix.js
Created February 3, 2012 17:06
jquery.wmodeFix.js - Fix wMode for embedded YouTube iFrames
/**
* Fix wMode for embedded YouTube iFrames
**/
function wmodeFix(){
$('iframe[src*="youtube"]').each(function() {
var iframe_src = $(this).attr('src') + '?wmode=transparent';
$(this).attr("src",iframe_src);
});
@erikig
erikig / jquery.toggler.js
Created February 5, 2012 19:16
jquery.toggler.js - A jQuery plugin that allows checkboxes or radio input with class="{name}_toggle" to toggle elements with class="{name}"
/**
* jquery.toggler.js
* - Allows checkboxes or radio input with class="{name}_toggle" to toggle elements with class="{name}"
* - Handles click event and pre-populated form fields
*
* Implementation Detail:
* 1. Include jquery & jquery.toggler.js
* 2. Call $('input[type="checkbox"][class$="_toggle"]').toggler();
* 3. ????
* 4. Profit!
@erikig
erikig / common-domain-prefix-suffix-list.tsv
Last active November 18, 2024 13:23
Top 5000 Most Common Domain Prefix/Suffix List - Courtesy LeanDomainSearch - https://leandomainsearch.com/top-domain-name-prefixes-and-suffixes/, Google Sheets version with changes to domain length - https://docs.google.com/spreadsheets/d/1BzZJ7BNek7ssUB2hWc6ChdF-mxN7QOE4U380Qx8uvR8/edit#gid=1626652908
Rank Type Prefix/Suffix Length
1 Prefix my+ 2
2 Suffix +online 6
3 Prefix the+ 3
4 Suffix +web 3
5 Suffix +media 5
6 Prefix web+ 3
7 Suffix +world 5
8 Suffix +net 3
9 Prefix go+ 2
/*
How to use:
1. Open Chrome
2. New Bookmark
3. Enter Name - https://emojipedia.org/search/?q=calendar
4. Paste code below into URL field
*/
javascript: (function() {
var title = encodeURIComponent("Follow Up - " + document.title.replace("Account > ",""));
@erikig
erikig / forms-of-capital.md
Created July 31, 2024 16:38
Forms of Capital
Form of Capital Sources
Financial Capital - Savings and personal wealth
- Bank loans and credit
- Stock markets and investors
- Venture capital and angel investors
- Government grants and subsidies
Physical Capital - Manufacturing and construction
- Research and development
- Infrastructure investments
- Technology adoption
Human Capital - Education and training
- Work experience
- Skills development
- Health and wellness programs
Intellectual Capital - Research and development
- Education and training
- Innovation and creativity
- Intellectual property rights
Social Capital - Community networks and relationships
- Professional associations
- Social norms and trust
- Civic engagement
Natural Capital - Ecosystems and biodiversity
- Renewable resources (e.g., forests, fisheries)
- Non-renewable resources (e.g., minerals, fossil fuels)
- Environmental services (e.g., clean air, water)