Skip to content

Instantly share code, notes, and snippets.

Mike Morici himedlooff

Block or report user

Report or block himedlooff

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 cf-buttons-default.html
<a href="#" class="btn">Anchor Tag</a>
<button class="btn">Button Tag</button>
<input type="submit" value="Input Tag" class="btn" />
View diff-review.js
var $dif = $('.js-details-container');
$dif.each(function(index){
$thisDif = $(this);
$buttons = $thisDif.find('.meta .actions .button-group');
$review = $('<a href="#" class="button minibutton diff-review">Mark as reviewed<code></code></a>');
$collapse = $('<a href="#" class="button minibutton diff-collapse">Collapse<code></code></a>');
$buttons.append($review);
@himedlooff
himedlooff / gfm.css
Created Mar 28, 2014
Styling used on GitHub.com to render markdown file previews.
View gfm.css
.markdown-body {
font-size: 15px;
line-height: 1.7;
overflow: hidden;
word-wrap: break-word;
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
View .bash_ps1
# Fill with minuses
# (this is recalculated every time the prompt is shown in function prompt_command):
fill="—- "
reset_style='\[\033[00m\]'
status_style=$reset_style'\[\033[0;90m\]' # gray color; use 0;37m for lighter color
prompt_style=$reset_style
command_style=$reset_style'\[\033[1;29m\]' # bold black
# Prompt variable:
@himedlooff
himedlooff / string-replace.js
Created Apr 29, 2014
A Grunt string-replace task option for replacing CSS url() paths.
View string-replace.js
{
pattern: /url\((.*?)\)/ig,
replacement: function (match, p1, offset, string) {
var path, pathParts, pathLength, filename, newPath;
path = p1.replace(/["']/g,''); // Removes quotation marks if there are any
pathParts = path.split('/'); // Splits the path so we can find the filename
pathLength = pathParts.length;
filename = pathParts[pathLength-1]; // The filename is the last item in pathParts
// Rewrite the path based on the file type
View reveal-on-focus.js
(function( $ ) {
$.fn.revealOnFocus = function( userSettings ) {
return $( this ).each(function() {
var $this = $( this ),
$target = $this.find('.reveal-on-focus_target'),
$content = $this.find('.reveal-on-focus_content');
$content.hide();
@himedlooff
himedlooff / css-comments-regex.js
Last active Aug 29, 2015
JS Regex to find CSS comments
View css-comments-regex.js
var cssComments = \(\/\*.(?:|\s*|\S*|\n*)*\*\/)\;
@himedlooff
himedlooff / example.less
Last active Aug 29, 2015
An example of inline print styles.
View example.less
.respond-to-print(@rules) {
@media print {
@rules();
}
}
.filtered-by {
margin: 0;
&_filter {
@himedlooff
himedlooff / names.md
Last active Aug 29, 2015
game company ideas
View names.md
  • working for the weekend
  • make em fast games
  • ship it games
  • build, break, repeat
  • rapido
  • Ándale!
  • week-end developers (a nod to front-end?)
  • weakened we can do it dev
  • weak-end dev (mashup of weakened and the -end in front-end)
  • 48 hour games
View padded-container.less
/* topdoc
name: Padded container
family: cfgov-misc
notes:
- ".padded-container is meant to contain anything you want with consistent
padding. It uses a margin collapsing trick in CSS to achieve this
consistency which this is why .line-container_body is needed. The only
caveat to this consistency is if you place something inside of it that has
a bottom-margin that is larger than the .padded-container padding."
patterns:
You can’t perform that action at this time.