Skip to content

Instantly share code, notes, and snippets.

@madrobby
madrobby / gist:3202087
Created July 29, 2012 22:01
Fallback to PNG if SVG is not supported
<!-- example for the http://retinafy.me ebook -->
<style>
div.rss {
background: url(rss.svg);
width: 32px;
height: 32px;
}
body.no-svg div.rss {
@gaspanik
gaspanik / mt-lion-amp.md
Created September 30, 2012 14:47
Install: AMP on 10.8.x

Apache+PHP+MySQL(Homebrew) on Mountain Lion

Mountain Lionの中に入ってるApacheとPHPを有効化しつつ、Homebrewを使ってMySQLをインストールするまで

※XcodeとCommand Line Toolsぐらいは入れておかないとだめなはず

Mountain Lion 内のApacheを起動

システム環境設定から消えてるので以下のコマンドでApache起動

sudo apachectl start
@studiomohawk
studiomohawk / five-2013-01-11.md
Created January 10, 2013 23:50
CSS Radar @ Twitter / 2013.01.11 Friday Edition

CSS Radar - 2013/01/11

CSSもモジュラー開発の時代だからこそ、知っておきたいディレクトリ構成の例。Sassを使った例ではあるが、LESSでもStylusでも同じことは実現できる。このあたりの構成についてはかなり考えたがこれは結構よく出来ている。これをベースに今の構成を見直そう。

JavaScriptのモジュールデザインパターンを著者の好きな形式を詳しく見ていきながら解説。短いながら利点を明確にして解説してあるので、是非。

@dergachev
dergachev / GIF-Screencast-OSX.md
Last active June 5, 2024 22:16
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@japboy
japboy / jade-ftw.md
Last active October 23, 2023 11:18
Jade について。

Jade FTW

こんにちは。今回は現実逃避を兼ねて Jade の素晴らしさをお伝えしたいと思います。

Jade とは何か

[Jade][0] は JST (JavaScript Templates) の一つであり、HTML を書くための[軽量マークアップ言語][1] である [Haml][2] に影響を受けた JavaScript テンプレートエンジンでもあります。

@gaspanik
gaspanik / kkmsz20130417.mdown
Created April 17, 2013 16:34
kkmsz 2013.04.16
@gaspanik
gaspanik / screenshots.js
Last active December 17, 2015 12:19 — forked from nhoizey/screenshots.js
Take screenshots at different viewport sizes using CasperJS
/*
* Takes provided URL passed as argument and make screenshots of this page with several viewport sizes.
* These viewport sizes are arbitrary, taken from iPhone & iPad specs, modify the array as needed
*
* Original:
* nhoizey / screenshots.js https://gist.github.com/nhoizey/4060568
*
* Usage:
* $ casperjs screenshots.js http://example.com
*/
@nodesocket
nodesocket / bootstrap.flatten.css
Last active April 1, 2021 23:37
Below are simple styles to "flatten" bootstrap. I didn't go through every control and widget that bootstrap offers, only what was required for https://commando.io, so your milage may vary.
/* Flatten das boostrap */
.well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid {
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
-webkit-border-radius: 0px !important;
-moz-border-radius: 0px !important;
border-radius: 0px !important;
border-collapse: collapse !important;
background-image: none !important;
@wildwest-service
wildwest-service / PCCS_Illustrator.ai
Last active August 18, 2017 13:43
【テキストデータ以外をGistに入れるのはやっぱ無理があったみたいなので、以後こちらで。 https://bitbucket.org/kazya/_pccs.scss/overview 】 This file is partial file for Compass/Sass by PCCS (Practical Color Coordinate System).You can include and use your sass or scss files what RGB color number variables in this file.ご自分のsassファイルにincludeしてください。PCCSの略記号をRGB色番号の変数名として使用できるようになります。
@bomberstudios
bomberstudios / sketch-plugins.md
Last active February 26, 2024 07:02
A list of Sketch plugins hosted at GitHub, in no particular order.