Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Chenzo's full-sized avatar
☠️
Piratey coding.

Vince Suriani Chenzo

☠️
Piratey coding.
View GitHub Profile
@Chenzo
Chenzo / Contract Killer 3.md
Created September 23, 2015 17:38 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@Chenzo
Chenzo / README.md
Created February 19, 2016 18:44 — forked from gajus/README.md

The issue:

..mobile browsers will wait approximately 300ms from the time that you tap the button to fire the click event. The reason for this is that the browser is waiting to see if you are actually performing a double tap.

(from a new defunct https://developers.google.com/mobile/articles/fast_buttons article)

touch-action CSS property can be used to disable this behaviour.

touch-action: manipulation The user agent may consider touches that begin on the element only for the purposes of scrolling and continuous zooming. Any additional behaviors supported by auto are out of scope for this specification.

@Chenzo
Chenzo / jquery.touchwipe.js
Last active October 11, 2019 09:00 — forked from willerce/jquery.touchwipe.js
jQuery Touchwipe Plugin
/**
* jQuery Plugin to obtain touch gestures from iPhone, iPod Touch and iPad, should also work with Android mobile phones (not tested yet!)
* Common usage: wipe images (left and right to show the previous or next image)
*
* @author Andreas Waltl, netCU Internetagentur (http://www.netcu.de)
* @version 1.1.1 (9th December 2010) - fix bug (older IE's had problems)
* @version 1.1 (1st September 2010) - support wipe up and wipe down
* @version 1.0 (15th July 2010)
*
* @version 1.1.2 (20th July 2016) - hack to toggle off.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#
# See below for acknowledgements.
# Please forward any additions, corrections or comments by email to
@Chenzo
Chenzo / bling.js
Created April 15, 2018 21:38 — forked from paulirish/bling.js
bling dot js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
}
NodeList.prototype.__proto__ = Array.prototype;
@Chenzo
Chenzo / index.js
Created January 20, 2019 21:12
Simple, complete example of a bot in Discord.js
// Load up the discord.js library
const Discord = require("discord.js");
// This is your client. Some people call it `bot`, some people call it `self`,
// some might call it `cootchie`. Either way, when you see `client.something`, or `bot.something`,
// this is what we're refering to. Your client.
const client = new Discord.Client();
// Here we load the config.json file that contains our token and our prefix values.
const config = require("./config.json");
@Chenzo
Chenzo / Instructions.md
Created August 4, 2019 23:58 — forked from pgilad/Instructions.md
Generate SSL Certificate for use with Webpack Dev Server (OSX)

Generate private key

$ openssl genrsa -out private.key 4096

Generate a Certificate Signing Request

openssl req -new -sha256 \
@Chenzo
Chenzo / safarionly.css
Created December 6, 2021 13:37
Target Safari Only CSS
@media not all and (min-resolution: 0.001dpcm) {
/* Safari 11+ Desktop and IOS */
@supports (-webkit-touch-callout: none) {
/* Safari IOS */
}
@supports not (-webkit-touch-callout: none) {
/* Safari 11+ desktop */