Skip to content

Instantly share code, notes, and snippets.

3D "domino tilting" platypus demo

Forked from Dudley Storey and made platypus friendly.

Derived from a technique on CodePlayer but made responsive, with better semantic markup, fewer pseudo-elements, and less CSS. Photograph found on Google Image Search

A Pen by StyxOfDynamite on CodePen.

License.

@StyxOfDynamite
StyxOfDynamite / Gruntfile.js
Created May 6, 2014 18:42
Simple Gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
files: {
'style/style.css' : 'sass/style.scss'
}
}
},
@StyxOfDynamite
StyxOfDynamite / install
Last active August 29, 2015 14:21
Simple Node Webserver
npm install connect serve-static

Contact Form

  1. Initially.. Lables - Hide

  2. Clicking the input box and entering the first character makes label visible

  3. As soon as user jumps to next input label color stays to dark grey

New York, NY
Los Angeles, CA
Chicago, IL
Brooklyn, NY
Queens, NY
Houston, TX
Manhattan, NY
Philadelphia, PA
Phoenix, AZ
San Antonio, TX
@StyxOfDynamite
StyxOfDynamite / broken.php
Last active May 8, 2017 14:18
Testing Profanity Filter.
<?php
class ProfanityTest extends TestCase {
protected $filter;
public function setUp()
{
$this->filter = new ProfanityFilter();
}
Aberdeen
Armagh
Bangor
Bath
Belfast
Birmingham
Bradford
Brighton and Hove
Bristol
Cambridge
@StyxOfDynamite
StyxOfDynamite / ready.js
Created October 16, 2017 19:53 — forked from olemak/ready.js
`JavaScript (ES2015) native "on document ready"
(() => { function fn() {
// "On document ready" commands:
console.log(document.readyState);
};
if (document.readyState != 'loading') {fn()}
else {document.addEventListener('DOMContentLoaded', fn)}
})();
@StyxOfDynamite
StyxOfDynamite / db.php
Created November 1, 2017 10:50
Magento 2 - MacOS Local Setup with Valet
<?php
// Put this file in your ~/.valet/Extensions directory!
/**
* Create a new database on your local machine.
*/
$app->command('db [name]', function ($name) {
if (! $name) {
warning('Please specify a database name');