Skip to content

Instantly share code, notes, and snippets.

@nrdobie
nrdobie / install-rubymine.sh
Last active February 12, 2018 12:26
Install RubyMine on Fedora. Run file as `root`. When RubyMine asks you to install you can just ignore it.
#!/bin/sh
SHORTCUT="[Desktop Entry]
Name=RubyMine 6.3
Comment=Edit text files
Exec=/usr/local/ruby-mine/bin/rubymine.sh
Icon=/usr/local/ruby-mine/bin/RMlogo.svg
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;TextEditor;Ruby;Development;"
@nrdobie
nrdobie / Social Header
Created February 9, 2013 04:48
A CodePen by Nicholas Dobie. Social Network Profile Header - This is a social network profile header that was done entirely in CSS and HTML.
<h1>GitSocial <small>A social network for programmers.</small></h1>
<header>
<figure class="profile-banner">
<img src="https://s3.amazonaws.com/doubleslash-codepen/mnpls.jpg" alt="Profile banner" />
</figure>
<figure class="profile-picture"
style="background-image: url('https://s3.amazonaws.com/doubleslash-codepen/me-and-arron.jpg')">
</figure>
<div class="profile-stats">
<ul>
@nrdobie
nrdobie / block-shadow-mixer.css
Created September 5, 2012 19:50
Makes a block shadow CSS3 effect.
/* line 5, projects/block-shadow-mixer.css.sass */
#block-shadow-mixer .play-area h1, #block-shadow-mixer .play-area h2, #block-shadow-mixer .play-area h3 {
font-family: "ff-cocon-web-pro";
margin-bottom: 20px; }
/* line 9, projects/block-shadow-mixer.css.sass */
#block-shadow-mixer .play-area h1 em, #block-shadow-mixer .play-area h2 em, #block-shadow-mixer .play-area h3 em {
font-family: "bistro-script-web"; }
/* line 11, projects/block-shadow-mixer.css.sass */
#block-shadow-mixer .play-area h1 {
color: #ff1d23;
@nrdobie
nrdobie / drag-circle.coffee
Created September 4, 2012 19:43
Drag-n-Drop CSS3 Circle
jQuery ->
$('#drag-circle .play-area .draggable').draggable
containment: "parent"
$('#drag-circle .play-area .droppable').droppable
hoverClass: "drag-over"
drop: (event, ui)->
$(@).addClass "dropped"
$(ui.draggable[0])
activate: () ->
$(@).removeClass "dropped"