Skip to content

Instantly share code, notes, and snippets.

View cngodles's full-sized avatar

Clint cngodles

View GitHub Profile
@cngodles
cngodles / auto-scroll-sample
Created May 21, 2021 13:41
Auto scroll Example
$(document)
.on("click", 'a[href^="#"]', function(e){
e.preventDefault();
var target = $(this).attr("href");
$('html, body').animate({scrollTop: $(target).offset().top }, 400);
})
;
@cngodles
cngodles / index.html
Created May 5, 2020 14:37
Pokémon Go Shiny Luck Simulator
<div id="catch_screen">
<div id="encounter">
<img id="pokemon"/>
<img id="shiny"/>
<canvas id="sparkles" width="256" height="256"></canvas>
<img src="https://github.com/ZeChrales/PogoAssets/blob/master/static_assets/png/sparkle.png?raw=true" id="sparkle"/>
</div>
<select id="pokemons"></select>
<table id="stats">
<tr>
@cngodles
cngodles / zipcodes-createtable.sql
Last active February 22, 2022 04:25
ZipCode SQL Data (From 2013 Data)
CREATE TABLE `zip` (
`zip` int(5) unsigned zerofill NOT NULL,
`lat` decimal(10,8) DEFAULT NULL,
`lng` decimal(11,8) DEFAULT NULL,
PRIMARY KEY (`zip`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
@cngodles
cngodles / bootstrap.min.css
Created August 31, 2018 15:43
bootstrap.min.css for Layout Only
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*!
* Generated using the Bootstrap Customizer (<none>)
* Config saved to config.json and <none>
*//*!
@cngodles
cngodles / pokemon-list.sql
Created August 23, 2018 15:43
Pokemon MYSQL Dump
CREATE TABLE `pokemon_list` (
`id` int(5) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=803 DEFAULT CHARSET=utf8;
insert into `pokemon_list`(`id`,`name`) values
(1,'Bulbasaur'),
(2,'Ivysaur'),