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
<-- link locally --> | |
<script src="js/jquery-1.8.3.min.js"></script> | |
<-- use CDN --> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> |
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
$track-icons: 'hairtechnique', 'hairtexture', 'barber', 'makeup', 'nail', 'business', 'genericplaceholder'; | |
div{ | |
@for $i from 1 through length($track-icons){ | |
&.#{nth( $track-icons , $i )}{ | |
position:relative; | |
&:after{ | |
content:''; | |
display:block; | |
position:absolute; | |
height:70px; |
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
#!/usr/bin/env ruby | |
require 'open-uri' | |
require 'socket' | |
require 'net/http' | |
require 'net/https' | |
p Time.now.strftime("%d/%m/%Y %H:%M") | |
domain = '...' | |
current_ip = open('http://whatismyip.akamai.com').read |
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
html, body{ | |
height:100%; | |
background:#222; | |
} | |
body{ | |
display:flex; | |
align-items:center; | |
justify-content:center; | |
} |
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
html, body{ | |
height:100%; | |
background:#222; | |
} | |
body{ | |
display:flex; | |
align-items:center; | |
justify-content:center; | |
} |
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
(1..100).each do |i| | |
line = i % 3 == 0 ? 'fizz ' : '' | |
line += i % 5 == 0 ? 'buzz' : '' | |
line.empty? ? puts(i) : puts(line) | |
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
require 'pp' | |
require 'ostruct' | |
require 'yaml' | |
require 'jekyll' | |
require 'date' | |
require 'digest/md5' | |
require 'action_view' | |
require 'rexml/document' | |
require 'uri' |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>CodePen - A Pen by tkazi</title> | |
<link rel="stylesheet" href="style.css" media="screen" type="text/css" /> | |
</head> | |
<body> | |
<div class="ordered"> | |
<h3>ordered</h3> |
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
#!/usr/bin/env ruby | |
# faux-wget.rb : example of performing wget-style mirroring | |
require 'nokogiri' | |
require 'net/http' | |
require 'fileutils' | |
require 'uri' | |
=begin rdoc | |
Wrap a URI and provide methods for download, parsing, and mirroring of remote HTML document. |
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
require 'open-uri' | |
require 'nokogiri' | |
link = "http://entrenchant.blogspot.ch/2012/02/web-page-mirroring-wget-in-ruby.html?m=1" | |
now = Time.now.to_i.to_s | |
@doc = Nokogiri::HTML(open( link )) | |
@css_tags = @doc.css('[rel="stylesheet"]').map { |l| URI.join( link, l['href'] ).to_s } |