Skip to content

Instantly share code, notes, and snippets.

Sam Hasler SamHasler

Block or report user

Report or block SamHasler

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Subscribe_in_Bloglines_Beta.js
//Note: This command was automatically generated by the create-bookmarklet-command command.
CmdUtils.makeBookmarkletCommand({
name: "subscribe-in-bloglines-beta",
url: "javascript:location.href='http://beta.bloglines.com/b/view#view-mode.searchfeeds-q.'+encodeURIComponent(location.href).replace(/\%/g,'~').replace(/\./g,'~2E')+'-t.feed-s.r-start.0-displayModel.searchpage-viewDisplay.searchpage%26t%3D1212012300031'"
});
@SamHasler
SamHasler / Copy Command
Created Feb 14, 2009
Now compatible with Ubiquity 0.5 / Parser 2
View Copy Command
Components.utils.import("resource://ubiquity/modules/setup.js");
CmdUtils.CreateCommand(
{names: ["copy-command"]
,icon: "chrome://ubiquity/skin/icons/favicon.ico"
,homepage: "http://gist.github.com/64187"
,author: { name: "Sam Hasler", email: "ubiquity at haslers.info"}
,license: "GPL"
,description: "Clone a ubiquity command feed by copying it to the Command Editor"
,help: "Select one of your installed commands from the suggestions and the code for it will be appended to the command editor"
@SamHasler
SamHasler / hn-betteridge.user.js
Created Jun 11, 2012 — forked from noibl/hn-betteridge.user.js
Betteridge's Law for Hacker News
View hn-betteridge.user.js
// ==UserScript==
// @name BetteridgeLinks
// @description Lowlight headlines on Hacker News that conform to Betteridge's Law
// @version 0.3
// @match http://news.ycombinator.com/*
// @author noibl <pjpee6w5pc@snkmail.com>
// ==/UserScript==
var questions = ['Is', 'Are', 'Does', 'Do', 'Has', 'Have', 'Did', 'Will', 'Can', 'Could', 'Should'];
var selector = '.title a';
@SamHasler
SamHasler / SassMeister-input.scss
Created Feb 21, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
/* 3 ways to do modules with BEM syntax in sass */
/* 3 mixins */
$module: "";
$space: " ";
@SamHasler
SamHasler / SassMeister-input.scss
Created Jun 10, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
/* 1 */
$Placeholder-Selectors: ();
/* 2 */
@mixin button($color, $extend: true) {
@include button-static($extend);
@SamHasler
SamHasler / SassMeister-input.scss
Created Jul 23, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.10)
// Compass (v1.0.0.alpha.20)
// ----
/**
* Testing:
* - prepending optional selectors
* - css-wizardry-grids with all MQ
*/
@SamHasler
SamHasler / SassMeister-input.scss
Created Jul 23, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.10)
// Compass (v1.0.0.alpha.20)
// ----
// Test maps and breakpoint dimentions
$bp-dims: (
palm-max: 480px
);
@SamHasler
SamHasler / SassMeister-input.scss
Created Jul 24, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.10)
// Compass (v1.0.0.alpha.20)
// ----
// ----
// Sass (v3.3.0.rc.2)
// ----
$box-line: red;
@SamHasler
SamHasler / SassMeister-input.scss
Created Jul 24, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.10)
// Compass (v1.0.0.alpha.20)
// ----
// ----
// Sass (v3.3.10)
// ----
$box-line: red;
@SamHasler
SamHasler / SassMeister-input.scss
Created Jul 24, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.10)
// Compass (v1.0.0.alpha.20)
// ----
// Sass (v3.3.0.rc.2)
$box-line: red;
.portfolio {
You can’t perform that action at this time.