Skip to content

Instantly share code, notes, and snippets.

View color2life's full-sized avatar

Abdul Wahid color2life

View GitHub Profile
<style id="jsbin-css">
body {
margin: 20px;
font-family: Arial, sans-serif;
font-size: 12px;
}
.selects {
padding: 30px 10px;
}
.selects select {
'use strict';
var TestSuite = {
module: function(name, testCases) {
this.result('<b><br/>Module: ' + name + ' testing</b>');
testCases(TestSuite);
},
test: function(name, testCase) {
this.result('Test: ' + name);
testCase(TestSuite.assert);
@color2life
color2life / gist:b613dfc36c61684b7f7d
Last active March 20, 2017 15:29
SASS, SCSS Structure
SASS/
├── base/
│ ├── base.sass // includes all common, mixin, vars, defaults
│ ├── _common.sass // common stuff like .clearfix
│ ├── _grid_settings.sass
│ ├── _mixins.sass // all mixin
│ ├── _vars.sass // variables
│ ├── _fonts.sass // call all fonts source here
│ ├── dev.sass // anything for development... grid lines
├── vendors/
@color2life
color2life / Brew install error
Created December 10, 2012 12:00
Brew install error
Whatever I try to install its give me error
$ brew install mysql
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/mysql-5.5.28.mountainlion.bottle.tar.gz
curl: (35) Unknown SSL protocol error in connection to downloads.sf.net:443
Error: Download failed: https://downloads.sf.net/project/machomebrew/Bottles/mysql-5.5.28.mountainlion.bottle.tar.gz
@color2life
color2life / loop.haml
Created June 13, 2012 09:35
haml loop ror
- 10.upto(20) do |i|
@color2life
color2life / install_homebrew.rb
Created July 10, 2011 11:16 — forked from mxcl/install_homebrew.markdown
Installs Homebrew to /usr/local so you don't need sudo to `brew install`
#!/usr/bin/ruby
#
# This script installs to /usr/local only. To install elsewhere you can just
# untar https://github.com/mxcl/homebrew/tarball/master anywhere you like.
#
#
# 30th March 2010:
# Added a check to make sure user is in the staff group. This was a problem
# for me, and I think it was due to me migrating my account over several
# versions of OS X. I cannot verify that for sure, and it was tested on