Skip to content

Instantly share code, notes, and snippets.

View Wolfr's full-sized avatar

Wolfr Wolfr

View GitHub Profile
@Wolfr
Wolfr / timekeeper.js
Created February 1, 2014 13:30
timekeeper.js
// Node timekeeper
// Used to parse output from iCal to CSV (tab delimited) that can be imported in numbers
// You need to put the contents in a file called test.txt in the same folder as timekeeper.js
var fs = require('fs')
fs.readFile('test.txt', 'utf8', function (err,data) {
if (err) {
return console.log(err);
}
/* Spinner
========================================================================== */
// size of small spinner
$spinner-size: 16px;
// size of big spinner
$spinner-big-size: 32px;
// border size of small spinner
/* Table cell alignment
========================================================================== */
td.ar,
th.ar {
text-align: right !important;
}
td.ac,
th.ac {
smartctl 6.3 2014-07-26 r3976 [x86_64-apple-darwin14.0.0] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Apple SD/SM/TS...E/F SSDs
Device Model: APPLE SSD SM256E
Serial Number: S0XENYBCB41370
LU WWN Device Id: 5 002538 043584d30
Firmware Version: CXM09A1Q
User Capacity: 251,000,193,024 bytes [251 GB]
/* Color definitions
========================================================================== */
$blue-lighter: #BCD6EA;
$blue-lightest: #ECF3F7;
$blue-light: #85B5D9;
$blue: #09B3DF;
$red: #D54026;
$red-light: #EC9F92;
$brown: #60220E;
@registerTask 'generateRandomLengthFile', () ->
# Generate random length file
var myRandomLengthString = 'todo'
# Write the file
scssfile = grunt.file.write("my-includes-folder/includes.html", myRandomLengthString)
$(document).ready(function() {
$(".content a:has(img)").addClass('linkedImage');
});
@Wolfr
Wolfr / fadein.css
Created July 27, 2011 15:31
Fade in animation
/* Fade in animation */
@-webkit-keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@Wolfr
Wolfr / inheritance_prevention.css
Created October 2, 2011 19:00
Inheritance prevention
@media all and (min-width: 500px) and (max-width: 700px) {
/* Styles constrained to 500-700px */
}
.box {
margin: 30px;
width: 500px;
height: 30px;
border: 1px solid #999;
box-shadow: 2px 2px 4px rgba(0,0,0,0.25);
}