Skip to content

Instantly share code, notes, and snippets.

View whatnickcodes's full-sized avatar
😍

Nicholas Cerminara whatnickcodes

😍
View GitHub Profile
<div class="boxright">
<ul>
<li><a href="http://example.com/page/1">111th Accomplishments</a></li>
<li><a href="http://example.com/page/2">112th Accomplishments</a></li>
<li><a href="#\http://example.com/page/3">Accomplishments</a></li>
</ul>
</div>
@whatnickcodes
whatnickcodes / autosubmit.js
Created August 18, 2014 20:39
auto-submit
$(document).ready(function(){
jQuery('.signuperror').hide();
function sleep(milliseconds) {
var start = new Date().getTime();
for (var i = 0; i < 1e7; i++) {
if ((new Date().getTime() - start) > milliseconds){
break;
}
r/cache/local/preseeding/mysql-server.seed
==> burkeforwisconsin: [2014-07-23T14:09:46+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] owner changed to 0
==> burkeforwisconsin: [2014-07-23T14:09:46+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] group changed to 0
==> burkeforwisconsin: [2014-07-23T14:09:46+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] mode changed to 600
==> burkeforwisconsin: [2014-07-23T14:09:46+00:00] INFO: template[/var/cache/local/preseeding/mysql-server.seed] sending run action to execute[preseed mysql-server] (immediate)
==> burkeforwisconsin: [2014-07-23T14:09:46+00:00] INFO: execute[preseed mysql-server] ran successfully
==> burkeforwisconsin:
==> burkeforwisconsin: ================================================================================
==> burkeforwisconsin: Error executing action `start` on resource 'service[mysql]'
==> burkeforwisconsin: =====================================================================
<table class="table table-striped table-condensed table-hover">
<thead>
<tr>
<th>Bill</th>
<th>Date</th>
<th>Motion to Recommit (MTR)</th>
<th>Text</th>
<th>Vote</th>
</tr>
</thead>
<!-- TWO COLS -->
<div class="row">
<div class="col-md-6">
LEFT
</div>
<div class="col-md-6">
RIGHT
</div>
</div>
@whatnickcodes
whatnickcodes / update.php
Last active August 29, 2015 14:03
update.php
<?php
$args = array('post_type' => array('post'), 'posts_per_page' => -1);
$loop = new WP_Query($args);
while ( $loop->have_posts() ) : $loop->the_post();
$posttags = get_the_tags();
@whatnickcodes
whatnickcodes / base64.js
Created April 24, 2014 15:01
How to Encode and Decode Strings with Base64 in JavaScript
// Create Base64 Object
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t="";var n,r,i,s,o,u,a;var f=0;e=Base64._utf8_encode(e);while(f<e.length){n=e.charCodeAt(f++);r=e.charCodeAt(f++);i=e.charCodeAt(f++);s=n>>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}t=t+this._keyStr.charAt(s)+this._keyStr.charAt(o)+this._keyStr.charAt(u)+this._keyStr.charAt(a)}return t},decode:function(e){var t="";var n,r,i;var s,o,u,a;var f=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(f<e.length){s=this._keyStr.indexOf(e.charAt(f++));o=this._keyStr.indexOf(e.charAt(f++));u=this._keyStr.indexOf(e.charAt(f++));a=this._keyStr.indexOf(e.charAt(f++));n=s<<2|o>>4;r=(o&15)<<4|u>>2;i=(u&3)<<6|a;t=t+String.fromCharCode(n);if(u!=64){t=t+String.fromCharCode(r)}if(a!=64){t=t+String.fromCharCode(i)}}t=Base64._utf8_decode(t);return t},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");var t="";for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r
@whatnickcodes
whatnickcodes / magical.css
Created April 23, 2014 15:30
Video Hover Play - Probably could be more elegant...
/* Make Container Relative */
.video-wrapper {
position: relative;
}
/* Position the pause/play buttons in corner */
.video-icon-item {
font-family: "FontAwesome"; /* Font Awesome HTML Entity Trick verus using <i class="fa fa-play"></i> */
position: absolute;
right: 20px;
================================================================================
Error executing action `install` on resource 'package[screen]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '100'
---- Begin output of apt-get -q -y install screen=4.0.3-14ubuntu8 ----
STDOUT: Reading package lists...
@whatnickcodes
whatnickcodes / test.txt
Created March 23, 2014 23:38
I just made this with Sublime!
this is a gist I just made