Skip to content

Instantly share code, notes, and snippets.

View mikemattner's full-sized avatar

Mike Mattner mikemattner

View GitHub Profile
@mikemattner
mikemattner / daily-ui.md
Created March 24, 2022 21:13 — forked from Pustur/daily-ui.md
DailyUI – A list of every DailyUI design challenge

All DailyUI Challenges

  1. Sign Up
  2. Credit Card Checkout
  3. Landing Page (above the fold)
  4. Calculator
  5. App Icon
  6. User Profile
  7. Settings
  8. 404 page
@mikemattner
mikemattner / checkboxes.scss
Created June 1, 2018 14:25 — forked from gregblass/checkboxes.scss
Fancy CSS styling for Radio Buttons and Checkboxes
/*********************
Fancy CSS Textboxes
**********************/
$light-blue: #609FD5;
input[type="checkbox"] {
position: absolute;
left: -9999px;
visibility: hidden;
/* ADDS A BROWSER PREFIX TO THE PROPERTY */
@mixin css3-prefix($property, $value) {
-webkit-#{$property}: #{$value};
-khtml-#{$property}: #{$value};
-moz-#{$property}: #{$value};
-ms-#{$property}: #{$value};
-o-#{$property}: #{$value};
#{$property}: #{$value};
}
{
"color_scheme": "Packages/Boxy Theme/schemes/Boxy Ocean.tmTheme",
"font_face": "Hack",
"font_size": 14.0,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
"line_padding_bottom": 2,
@mikemattner
mikemattner / animation.scss
Last active June 9, 2016 15:11
Client animation demonstrating a representation of profit/cost margins.
/*KEYFRAME ANIMATION MIXIN
http://joshbroton.com/quick-fix-sass-mixins-for-css-keyframe-animations/
------------USAGE//////////////////////////////
@include keyframes(move-the-object) {
0% { left: 100px; }
100% { left: 200px; }
}
{
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme",
"font_face": "Deja Vu Sans Mono",
"font_size": 14.0,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
"line_padding_bottom": 2,
@mikemattner
mikemattner / Custom Activity Widget
Last active August 29, 2015 14:00
WordPress Snippets
// unregister the default activity widget
add_action('wp_dashboard_setup', 'remove_dashboard_widgets' );
function remove_dashboard_widgets() {
global $wp_meta_boxes;
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_activity']);
}
// register your custom activity widget
<?php
$time = time('h');
function how_i_feel_today($time) {
switch($time) {
case 8:
case 9:
case 10:
case 11:
echo 'Damn, it\'s only ' . $time . '!<br />';
@mikemattner
mikemattner / Package Control.sublime-settings
Last active December 17, 2015 03:08
Sublime Text 2 Settings
{
"installed_packages":
[
"Alignment",
"Color Scheme - Frontend Delight",
"Color Scheme - RSE",
"Color Schemes by carlcalderon",
"Package Control",
"Prefixr",
"StringUtilities",
@mikemattner
mikemattner / Core.js
Last active December 11, 2015 02:58
Core.js - This is the core of the JavaScript that I use on my own website using a combination of plugins and custom code. send.php - Using ajax, I then process data from the contact form on my site using a custom class (class.mmemail.php) in conjunction with the PHPMailer class.
$(document).ready(function() {
// add prettyprint class to all <pre><code></code></pre> blocks
var prettify = false;
$("pre code").parent().each(function() {
$(this).addClass('prettyprint');
21 $(this).addClass('linenums');
prettify = true;
});