A Pen by Captain Anonymous on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from threading import Thread | |
from time import sleep | |
import pysftp | |
from stat import S_IMODE, S_ISDIR, S_ISREG | |
def get_r_portable(remotedir, localdir, num_threads = 10): | |
print(remotedir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=def-classes($attr, $values...) | |
@each $val in $values | |
.#{$attr}-#{$val} | |
#{$attr}: #{$val} | |
@each $d in 0,1,2,4,8,16 | |
@each $attr in margin, padding | |
.#{$attr}-#{$d}, .childs-#{$attr}-#{$d} > * | |
#{$attr}: #{$d}em |
Simple css vertical dividers you can easily adapt to the grid system of your liking.
Forked from Phil Hoyt's Pen Vertical Dividers between Columns.
A Pen by Captain Anonymous on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nonlinear scrolling of idea attachments | |
# we want to make it like the scrolling pauses on each attachment | |
# for this we create an empty wrapper with the same width, height and use a fixed positioning for attachments container | |
# this way we can freely decide where to position them based on window's scroll position, and the wrapper will keep the | |
# preserved space in the document | |
$(window).on 'scroll', -> | |
container = $('.nonlinear-scroll') | |
wrapper = $('.nonlinear-scroll-wrapper') | |
breathePoints = $('.nonlinear-scroll-breathe-point') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FuiBooleanInput < SimpleForm::Inputs::BooleanInput | |
self.default_options = {:input_html => {'data-toggle' => "checkbox"}, :inline_label => true, :label => false} | |
def nested_boolean_style? | |
true | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin ie6 { * html & { @content } } | |
#logo { | |
background-image: url("/images/logo.png"); | |
@include ie6 { background-image: url("/images/logo.gif"); } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
more: https://github.com/justinfrench/formtastic | |
-> make form for all db columns | |
<%= semantic_form_for @user do |f| %> | |
<%= f.inputs %> | |
<%= f.buttons %> | |
<% end %> | |
-> select cols | |
<%= semantic_form_for @user do |f| %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' | |
rails 1.9 new hash syntax | |
new_hash = {simon: "Talek", lorem: "Ipsum"} | |
###Rspec | |
%cucumber | |
save_and_open_page | |
###MIGRATION |
NewerOlder