Skip to content

Instantly share code, notes, and snippets.

View mkeneqa's full-sized avatar
♣️
Chaos EnCode

Mike mkeneqa

♣️
Chaos EnCode
View GitHub Profile
@mkeneqa
mkeneqa / css_resources.md
Created July 23, 2014 06:20 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@mkeneqa
mkeneqa / JQuery_Namespaced_Template.js
Last active November 8, 2019 09:06
Example on how to share JavaScript functions across multiple files with as long as both files are loaded in on the page.
/*---------------------------*/
//JSFILE 1 - file that contains all namespace object and functions
(function(){
var main = window.main || {}
var myNewObjectPage = main.myNewObjectPage = {
markedInvoicesCollection: [], //global array to be used anywhere within the myNewObjectPage
init: function()
@mkeneqa
mkeneqa / Custom Twitter Widget + fetch.markdown
Created October 30, 2015 01:36
Custom Twitter Widget + fetch

Custom Twitter Widget + fetch

Nobody likes classic twitter widget. This is an example of how can twitter feed, hashtag, search query could be customized and used in any kind of website. As well us Twitter Widget Custom css styling

A Pen by Nerijus on CodePen.

License.

@mkeneqa
mkeneqa / 00. Mailchimp WP.md
Last active January 9, 2016 19:30
Newsletter Snippet to show/hide newsletter signup form in your wordpress theme

Show/Hide Mailchimp Newsletter Signup Form

This snippet shows how to show/hide the newsletter signup using the Mailchimp for WP plugin

the classes: class="hvr-grow-shadow" are for css animiation using Hover library

##Screenshot of actual example:

@mkeneqa
mkeneqa / about.md
Last active October 22, 2017 23:12
GMail HTML

Intro

Use this template to compose HTML email on Gmail. The email.html file contains the structure to build the email. Use this service to edit and send/save your email composition: https://htmlmail.pro/

@mkeneqa
mkeneqa / laravel55_on_codeanywhere.md
Last active September 8, 2018 15:01
Installing Laravel 5.5 (and later) On CodeAnywhere

Installing Laravel 5.5 (and later) On CodeAnywhere

CodeAnywhere is a great cloud IDE to create web apps but it lacks that latest install of Laravel. So I used the latest PHP stack as my base and then installed the latest version of Laravel 5.5 with additional packages.

Here are the steps I followed:

  1. Create a new Container (Hook up bitbucket or GitHub repo first if there is an existing repo) use the PHP7 CentOS Stack
  2. Once container is loaded update composer: composer self-update
  3. Then install Laravel on the root of workspace: composer create-project laravel/laravel basicwebsite
  4. Install Nano editor: sudo yum install nano
@mkeneqa
mkeneqa / wc-scores.py
Last active June 21, 2018 15:39
Quick and dirty way to get WC 2018 scores in the terminal.
import time
import datetime
import os
import requests
import json
import sys
'''
Quick and dirty way to get wc scores in the terminal. This python script uses the World Cup API from Software for Good (https://softwareforgood.com/) to get live updates about a match and other
matches happening today. This script querries info on the current match and the other matches happening today and displays in the terminal.
Script then clears the terminal (WINDOWS) with displays the latest updated data every 70 seconds.
@mkeneqa
mkeneqa / UnixEpochToHRD.php
Last active December 7, 2018 18:32
PHP Epoch unix time conversion to HRF
<?php
//How to do proper epoch unix time conversion to Human Readable Date (HRD) in php
//How to do proper epoch unix time conversion to HRD in php
$time = 1531116000000;
date_default_timezone_set('America/Edmonton');
echo date('r', substr($time, 0, 10));
echo '<br/><br/>';
echo date('D, Y-M-d', substr($time, 0, 10));