Skip to content

Instantly share code, notes, and snippets.

View mikevalstar's full-sized avatar

Mike Valstar mikevalstar

View GitHub Profile
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
<SharePoint:UIVersionedContent UIVersion="4" runat="server">
<ContentTemplate>
<div style="padding-left:5px">
</ContentTemplate>
</SharePoint:UIVersionedContent>
<table class="ms-core-tableNoSpace" id="onetIDListForm">
<tr>
<td>
<WebPartPages:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main" />
// Buttons
//
// A majority of buttons in the site are built from the same base class.
//
// Markup:
// <a href="#" class="button {$modifiers}">Link Button</a>
// <button class="button {$modifiers}">Button Element</button>
// <input type="button" class="button {$modifiers}" value="input[type='button']"/>
//
// .primary - Indicate that the button is the primary feature of this form.
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: [
'Gruntfile.js',
var lat = parseFloat($('#coords latitude').html());
var lon = parseFloat($('#coords longitude').html());
var url = "https://maps.google.com/maps?q=" + $('#coords latitude').html() + "," + $('#coords longitude').html();
var myLatlng = new google.maps.LatLng(lat, lon);
var mapOptions = {
zoom: 14,
center: myLatlng
};
var map = new google.maps.Map(document.getElementById('map-contactus'), mapOptions);
$('body').on('keypress', function(e){
if(e.keyCode == 37) $('.next').click();
})
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) /index.php/$1 [L,QSA]
ExpiresActive On
ExpiresByType image/gif "access plus 7 days"
ExpiresByType image/png "access plus 7 days"
ExpiresByType image/jpeg "access plus 7 days"
3MVG9dPGzpc3kWydRGvkGoHyMMyDfHx1I0kQwcfDfjAgj5NVwXHMV8N7_nCWcKJYgr4S63jv6O0Q0ttOOoVdx
@mikevalstar
mikevalstar / gist:4234044
Created December 7, 2012 15:42
check if wowza is running and restart
echo "if [ ! -f /var/run/WowzaMediaServer.pid ]; then /etc/init.d/WowzaMediaServer start; fi; if ! kill -0 `cat /var/run/WowzaMediaServer.pid`; then /etc/init.d/WowzaMediaServer start; fi" > /wowzastart.sh
at -f /wowzastart.sh now + 1 minute
DEFINED_PHASES=compile configure install postinst prepare setup test
DEPEND=!dev-lang/php:5 >=app-admin/eselect-php-0.6.2 >=dev-libs/libpcre-8.12[unicode] apache2? ( www-servers/apache[threads=] ) berkdb? ( =sys-libs/db-4* ) bzip2? ( app-arch/bzip2 ) cdb? ( || ( dev-db/cdb dev-db/tinycdb ) ) cjk? ( !gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib ) ) crypt? ( >=dev-libs/libmcrypt-2.4 ) curl? ( >=net-misc/curl-7.10.5 ) enchant? ( app-text/enchant ) exif? ( !gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib ) ) firebird? ( dev-db/firebird ) gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib ) gdbm? ( >=sys-libs/gdbm-1.8.0 ) gmp? ( >=dev-libs/gmp-4.1.2 ) iconv? ( virtual/libiconv ) imap? ( virtual/imap-c-client[ssl=] ) intl? ( dev-libs/icu ) iodbc? ( dev-db/libiodbc ) kerberos? ( virtual/krb5 ) kolab? ( >=net-libs/c-client-2004g-r1 ) ldap? ( >=net-nds/openldap-1.2.11 ) ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 ) libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) ) mssql? ( dev-db/fre
@mikevalstar
mikevalstar / UIImageViewResizable.h
Created October 2, 2012 15:35
UIImageViewResizable
//
// UIImageViewResizable.h
//
// Created by Mike Valstar on 2012-09-10.
//
#import <UIKit/UIKit.h>
@interface UIImageViewResizable : UIImageView <UIGestureRecognizerDelegate>{
UIPanGestureRecognizer *panGesture;