Skip to content

Instantly share code, notes, and snippets.

View mattisbusycom's full-sized avatar

Matthew M Kaufman mattisbusycom

View GitHub Profile
@mattisbusycom
mattisbusycom / gist:72de91822c21683693c3
Created July 7, 2015 18:49
flyweb wings float bottom left
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>SpclOps</title>
</head>
<body>
<a href="https://spclops.com/partners/flyweb-media-inc">
$(function()
{
$(document).on('click', '.btn-add', function(e)
{
e.preventDefault();
var controlForm = $('.controls form:first'),
currentEntry = $(this).parents('.entry:first'),
newEntry = $(currentEntry.clone()).appendTo(controlForm);
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Codeply preview</title>
<base target="_self">
<meta name="description" content="A layout with fixed width sidebar on the left, and fluid width content area on the right. The left side collapses on smaller devices such as tablets and smartphones." />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="google" value="notranslate">
@mattisbusycom
mattisbusycom / dates in php with Carbon
Created August 1, 2015 22:09
dates in php with Carbon
$dt = Carbon::parse('2012-9-5 23:26:11.123789');
// These getters specifically return integers, ie intval()
var_dump($dt->year); // int(2012)
var_dump($dt->month); // int(9)
var_dump($dt->day); // int(5)
var_dump($dt->hour); // int(23)
var_dump($dt->minute); // int(26)
var_dump($dt->second); // int(11)
var_dump($dt->micro); // int(123789)
<li class="dropdown open">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="true">
Status
</a>
<ul class="dropdown-menu dropdown-tasks">
<li>
<a href="#">
<div>
<p>
<strong>Briefcase 1</strong>
http://www.codeply.com/go/T3NcAvfbqO
WARNING: You have accessed a private computer system. This system is for authorized use only and user activities are monitored and recorded by company personnel. Unauthorized access to or use of this system is strictly prohibited and constitutes a violation of federal and state criminal and civil laws, including Title 18, Section 1030 of the United States Code and applicable international laws. Violators will be prosecuted to the fullest extent of the law. By logging on you certify that you have read and understood these terms and that you are authorized to access and use this system.