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
/** | |
* transition using width or height auto | |
*/ | |
ul,li { | |
display: block; | |
margin: 0; | |
padding: 0; | |
width: 250px; | |
} | |
li { |
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
(from https://coderwall.com/p/7jbwww) | |
First, create this alias: | |
git config --global alias.today "log --since=midnight --author='$(git config user.name)' --oneline" | |
Of course, you have to replace my name with yours. Then, before leaving office for a well-deserved rest, you can reflect on what you've accomplished during your working day by issuing this simple command: | |
git today |
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 'rake' | |
require 'css_splitter' | |
desc 'split css files' | |
namespace :css do | |
task :split do | |
infile = ENV['infile'] || raise("missing infile") | |
outdir = ENV['outdir'] || File.dirname(infile) | |
max_selectors = ENV['max_selectors'] || 4095 |
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
from http://stackoverflow.com/questions/12204900/how-to-install-compass-code-to-split-style-sheets-for-ie-selector-limit | |
Create css_spliter.rb file (https://gist.github.com/therebelrobot/9554968) beside your config.rb file, at the root of your sass project. | |
Add the following line at the beginning of your config.rb file | |
require 'css_splitter' | |
And add the 3 following lines at the end (of config.rb) |
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
/*<div class="hexagon"><div class="hexagon-in1"><div class="hexagon-in2"></div></div></div>*/ | |
.hexagon { | |
overflow: hidden; | |
visibility: hidden; | |
-webkit-transform: rotate(120deg); | |
-moz-transform: rotate(120deg); | |
-o-transform: rotate(120deg); | |
transform: rotate(120deg); | |
width: 200px; | |
height: 400px; |
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
sudo apt-get install zsh git-core | |
wget https://github.com/therebelrobot/oh-my-zsh/raw/master/tools/install.sh -O - | zsh | |
chsh -s `which zsh` | |
sudo shutdown -r 0 |
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
/* http://stackoverflow.com/questions/10425287/convert-string-to-camelcase-with-regular-expression */ | |
/* http://jsfiddle.net/54ZcM/ */ | |
function camelCase(string) { | |
return string.toLowerCase().replace(/(\-[a-zA-Z])/g, function($1) { | |
return $1.toUpperCase().replace('-',''); | |
}) | |
} |
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
<!-- From http://codepen.io/kaypooma/pen/ehfjC --> | |
<style rel="stylesheet"> | |
@import url(http://fonts.googleapis.com/css?family=Gilda+Display); | |
html { | |
background: radial-gradient(#000, #111); | |
color: white; | |
overflow: hidden; | |
height: 100%; | |
user-select: none; |
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
from http://cssdeck.com/labs/rotation-background-experiment | |
<!-- For only the image effect, only .outerGif and .innerGif are necessary --> | |
<!-- Sadly for javascript purposes we need a div within innerGif (CSS animation version doesn't need this, it can use a pseudo-element instead) --> | |
<body> | |
<!-- CSS animation --> | |
<div class='outerGif cssAnim'> | |
<div class='innerGif'><div class='image'></div></div> | |
<div class='overlay'><div class='image'></div></div> | |
</div> |
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
/* http://stackoverflow.com/a/7053197/2581354 */ |
OlderNewer