Skip to content

Instantly share code, notes, and snippets.

View cookatrice's full-sized avatar
🙃

cookatrice cookatrice

🙃
View GitHub Profile
@cookatrice
cookatrice / gist:5b7ecd88af74462c5995
Last active September 3, 2015 06:31
sweetAlert custom version.
// SweetAlert
// 2014 (c) - Tristan Edwards
// github.com/t4t5/sweetalert
// this is not latest version!!!!
(function(window, document) {
var modalClass = '.sweet-alert',
overlayClass = '.sweet-overlay',
alertTypes = ['error', 'warning', 'info', 'success'],
defaultParams = {
@cookatrice
cookatrice / doSum.js
Last active September 3, 2015 02:48
doSum
/** test function doSum */
function doSum(a,b){
var result = (a+b) * 3.14;
return result;
}

Keybase proof

I hereby claim:

  • I am cookatrice on github.
  • I am cookatrice (https://keybase.io/cookatrice) on keybase.
  • I have a public key ASBjTTQkOwm-Aq1vBeIe_W6bIb-bOcdMQmZ0Gmo-ihv9xgo

To claim this, I am signing this object:

@cookatrice
cookatrice / bower.json
Last active September 10, 2015 09:18
bower.json install attribute sample
{
"install": {
"base": "./src/main/webapp/resources/bowerAssets/",
"path": {
"css": "css",
"js": "js",
"woff": "fonts",
"woff2": "fonts",
"eot": "fonts",
"svg": "fonts",
@cookatrice
cookatrice / bower.json
Created September 10, 2015 09:19
bower.json install attribute sample2
{
"install": {
"base": "./src/main/webapp/resources/bowerAssets/",
"path": {
"css": "{name}/css",
"js": "{name}/js",
"woff": "{name}/fonts",
"woff2": "{name}/fonts",
"eot": "{name}/fonts",
"svg": "{name}/fonts",
@cookatrice
cookatrice / toBoolean.js
Created September 17, 2015 03:28
toBoolean
function toBoolean(value) {
if (typeof value === 'function') {
value = true;
} else if (value && value.length !== 0) {
var v = lowercase("" + value);
value = !(v == 'f' || v == '0' || v == 'false' || v == 'no' || v == 'n' || v == '[]');
} else {
value = false;
}
return value;
@cookatrice
cookatrice / todo.css
Created April 18, 2018 08:00 — forked from crongro/todo.css
fpstep
body > button {
margin: 2% 10%;
width: 200px;
height: 41px;
cursor: pointer;
font-size: 1.2em;
display: block;
}
.todoStatus {
@cookatrice
cookatrice / .block
Created February 19, 2019 06:28
Sankey Particles
license: mit
@cookatrice
cookatrice / .block
Created February 19, 2019 06:28
Sankey Particles II
license: mit
@cookatrice
cookatrice / .block
Created February 19, 2019 06:30
Sankey with transition
license: mit