Skip to content

Instantly share code, notes, and snippets.

View TMMC's full-sized avatar

TMMC TMMC

View GitHub Profile
@TMMC
TMMC / A.markdown
Created February 3, 2016 13:09 — forked from umpirsky/A.markdown
Sublime Text Monokai Sidebar Theme.
@TMMC
TMMC / jdk_jre_dl.sh
Last active February 14, 2016 20:28 — forked from P7h/jdk_download.sh
Script to download JDK / JRE / Java binaries from Oracle website from terminal / shell / command line / command prompt
#!/bin/bash
# =================================================================
# Shell script to download JDK and JRE binaries from Oracle
# website using wget in terminal/command prompt.
# =================================================================
# Forked from: https://gist.github.com/P7h/9741922
# -----------------------------------------------------------------
#
# You can download all the binaries at once just by changing:
@TMMC
TMMC / keymap.cson
Last active November 22, 2016 12:19
Solution for Polish characters mapping in Atom editor.
# ----------------------------------------------------------------------
# Solution for Polish characters mapping in Atom editor.
# ----------------------------------------------------------------------
# Just add lines below in you Atom keymap.cson
# On Windows: File - Keymap...
# On Linux: Edit - Keymap...
# Licence: WTFPL
# ----------------------------------------------------------------------
# Polish 'ż' character
@TMMC
TMMC / sass-mixins-for-css3-animations-and-keyframes.scss
Last active January 25, 2018 23:15
Sass mixins for CSS3 animations and keyframes. Created at CodePen.io, demo: http://codepen.io/TMMC/pen/xRaqje.
// == Sass mixins for animation and keyframes
// --------------------------------------------------
// @author TMMC <http://www.tmmc.pl>
// @licence MIT <https://opensource.org/licenses/MIT)>
// --------------------------------------------------
// IMPORTANT: using these mixins with autoprefixer is rather pointless as autoprefixer itself will do its job. The mixins give more control over prefixed properties and supported browsers. Anyways, even with autoprefixer, it will save time for defining all animation properties.
// == Animation
// Create animation properties and optionally classes for elements.
// Each argument can have `null` value, to exclude it.
@TMMC
TMMC / font-face-sass-mixin.scss
Created December 26, 2016 11:01
Sass mixin which generates font-face declaration for multiple file formats.
// == Font face SASS mixin
// --------------------------------------------------
// Generates font-face declaration for multiple file formats.
//
// @author TMMC <http://www.tmmc.pl>
// @licence MIT <https://opensource.org/licenses/MIT)>
//
// @param $font-family (string) - font family name
// @param $font-path (string) - path to font files location ending with slash
// @param $font-file-name (string) - font file name (basename w/out extension)
@TMMC
TMMC / header-navbar.php
Created July 7, 2017 08:32
wp nav walker
<?php
/**
* Top navigation and branding
*/
?>
<!-- <div class="utilsbar">
<div class="container">
some info here
</div>
</div> -->
@TMMC
TMMC / custom-gallery-format-for-wordpress.md
Last active April 14, 2019 03:52
Custom gallery format for WordPress (using Bootstrap v3 grid).
@TMMC
TMMC / register-post-type.php
Created July 26, 2017 08:06 — forked from justintadlock/register-post-type.php
Help file when registering post types.
<?php
# Register custom post types on the 'init' hook.
add_action( 'init', 'my_register_post_types' );
/**
* Registers post types needed by the plugin.
*
* @since 1.0.0
* @access public
@TMMC
TMMC / bootstrap_pagination.php
Created August 7, 2017 06:17 — forked from tamarazuk/bootstrap_pagination.php
WordPress Bootstrap Pagination (In active development)
<?php
/**
* Bootstrap Pagination.
*
* Echos Bootstraped paginated links (http://getbootstrap.com/components/#pagination).
*
* @since 0.0.1
*
* @param array $args {
* An array of arguments. Optional.
@TMMC
TMMC / gist:b8a8bba1ed435cd3a30fc58c195bb583
Created August 17, 2017 08:31 — forked from jbreitenbucher/gist:1996830
WordPress: Custom Post Type Template
<?php
/**
* Post Types
*
* This file registers any custom post types
*
* @package dorman-farrell
* @author The Pedestal Group <kathy@thepedestalgroup.com>
* @copyright Copyright (c) 2012, Dorman Farrell
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License