Skip to content

Instantly share code, notes, and snippets.

View Samstiles's full-sized avatar

Sam Stiles Samstiles

View GitHub Profile
.draggable-menu-accordion-div {
background-color: #FFFFFF;
padding: 17px 5px 5px 5px;
}
@Samstiles
Samstiles / mailout.html
Created July 30, 2013 13:17
Updated Mail Out
<div style="background-color: #D1E8F6; height: 300px; width: 750px; text-align: center;">
<img src="logo.jpg" alt="Logo">
<p style="padding: 0; margin: 0 0 10px 0; font-family: 'Myriad Pro'; font-weight: 600; color: #006C96;">OpenHouse.ca is happy to announce they will be offering <span>FREE</span> Postcard Packages to REALTORS&copy;. Here is yours for your Open House located at xxxxxx xxxxxx for July 28, 2013</p>
<p style="padding: 0; margin: 0; font-family: 'Myriad Pro'; font-weight: 600; color: #006C96;">Feel free to use this card to help the public know about your open house - either by printing it, saving it, posting it on Facebook/Twitter, etc. We also recommend you forward a copy to your clients who can send it to their friends and post on their social media as well.</p>
<div style="margin-top: 5px;">
<img src="1.jpg" alt="1" style="padding-top: 500;">
</div>
<div style="clear: both; text-align: left; font-family: 'Myriad Pro'; color: #006C96;">
<img src="2.jpg" alt="2">
<div styl
C:\Users\Sam\Desktop\Blog>jitsu deploy --debug
info: Welcome to Nodejitsu latros
info: jitsu v0.13.3, node v0.10.21
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node app.js
debug: { method: 'GET',
debug: uri: 'https://api.nodejitsu.com/apps/latros/Blog',
debug: headers:
debug: { Authorization: '**************************************************
C:\Users\Sam\Desktop\Blog>jitsu deploy --debug
info: Welcome to Nodejitsu latros
info: jitsu v0.13.3, node v0.10.21
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node app.js
debug: { method: 'GET',
debug: uri: 'https://api.nodejitsu.com/apps/latros/Blog',
debug: headers:
debug: { Authorization: '**************************************************
debug: rejectUnauthorized: false }
info Uploading: [=============================] 100%
debug: { statusCode: 201,
debug: result:
debug: { snapshot:
debug: { id: '0.0.1-12',
debug: md5: '9cafbb79947376268478428c81536e70',
debug: filename: 'latros-Blog-0.0.1-12.tgz',
debug: ctime: 1385576608365 } } }
info: Updating app Blog
console.log('info'.green + ': Visitor' + ': ' + req.connection.remoteAddress.green + ' is now viewing post: ' + post.title.green + '.');
@Samstiles
Samstiles / randomElement.js
Created January 7, 2014 20:46
Select random element in an array (array prototype function)
Array.prototype.randomElement = function () {
return this[Math.floor(Math.random() * this.length)]
}
Samuel Stiles@SAMS-W8-TABLET ~/Desktop/BeauCSS_Website (master)
$ grunt serve --verbose
Initializing
Command-line options: --verbose
Reading "Gruntfile.js" Gruntfile...OK
Registering Gruntfile tasks.
>> File "app\styles\main.scss" changed.
Initializing
Command-line options: --verbose
Reading "Gruntfile.js" Gruntfile...OK
Registering Gruntfile tasks.
Registering "grunt-contrib-copy" local Npm module tasks.
// Generated on 2014-01-07 using generator-webapp 0.4.6
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {