Skip to content

Instantly share code, notes, and snippets.

@damc-dev
damc-dev / index.html
Last active August 29, 2015 13:57
Custom Bookmarklets
<!--
- Description: Toggle Hide/Show Laravel Docs Side Bar Navigation
-
- Created date: 04/20/2014
-
- Created by: David McElligott
- damc.dev@gmail.com
-->
<html>
<a href="javascript:(function () {if (document.documentElement.contentEditable === false || document.designMode === 'off') {document.body.contentEditable='true';document.designMode='on';$('#docs').hide();$('#docs-content').css('float', 'left');void 0;} else if (document.documentElement.contentEditable === true || document.designMode === 'on') {document.body.contentEditable='false';document.designMode='off';$('#docs').show();$('#docs-content').css('float', 'right');void 0;}})();">HideBar</a>
@damc-dev
damc-dev / PrinterFriendlyWebpages.md
Last active August 29, 2015 14:01
Resources to help you make printer friendly HTML pages with CSS and JavaScript

#Printer Friendly Webpage Tips

####Resources to help you make printer friendly HTML pages with CSS and JavaScript

Simple Print Button

<form>
@damc-dev
damc-dev / AngularJS-Resources.md
Last active August 29, 2015 14:01
Resources for AngularJS for Reference
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Test Class Object in Javascript" />
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
</body>
@damc-dev
damc-dev / AgentMain.java
Created September 29, 2014 20:18
Byteman Custom Script Reloading
/*
* JBoss, Home of Professional Open Source
* Copyright 2008-10 Red Hat and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
@damc-dev
damc-dev / mk-rspec.sh
Created March 11, 2015 12:59
Bash: Creates and Initializes a RSpec Test
#!/bin/bash
# Title: mk-rspec.sh
# Description: Creates and Initializes a RSpec Test.
# Author: David McElligott
# Date: 03/11/2015
# Version: 0.1
# Usage: bash mk-rspec.sh $TEST_DIR
# Dependencies: Bundler
# ===============================================
@damc-dev
damc-dev / WindowsCheatSheet.md
Created August 5, 2015 20:40
Useful Windows Commands

Windows Commands

Description:

A compiled list of Windows commands any administrator may find useful.

commands will be added as they are used, feel free to fork and add to it!

Command Options

@damc-dev
damc-dev / SPARQL_QuerySubaruModels.md
Last active August 29, 2015 14:27
Query dbpedia.org for vehicle models manufactured by Subaru
@damc-dev
damc-dev / prettyprintgist.md
Created November 6, 2015 14:57 — forked from magnetikonline/README.md
Bookmarklet to pretty print Gist pages without the usual page chrome, just content. Handy for Markdown document printing.

Pretty print bookmarklet helper for Gist pages

Create a new bookmark somewhere handy in your browser with the following URL:

javascript:var el=document.createElement('style');el.media='print';el.innerHTML='#header,.pagehead.repohead,.gist-description.container,.file-box .meta,#comments,.js-comment-form,#footer{display:none;}.file-box{border:0!important;}';document.getElementsByTagName('head')[0].appendChild(el);alert('Please consider the environment before printing :)');
  • Navigate to your Gist of choice
  • Hit the bookmarklet
  • Now print
@damc-dev
damc-dev / ReportPlayerPositions.cs
Last active January 9, 2016 16:48
Reign of Kings Oxide Plugin to Update Player Positions to Firebase on interval
using System.Collections.Generic;
using System;
using System.Data;
using System.Reflection;
using Newtonsoft.Json;
using UnityEngine;
using Oxide.Core;
using Oxide.Core.Plugins;