Changed theme.

This commit is contained in:
Shashank Mehta
2013-05-14 03:35:35 +05:30
parent dae1e41c83
commit c0b836d6ee
74 changed files with 1149 additions and 498 deletions

0
.preview-mode Normal file
View File

1
.themes/greyshade Submodule

Submodule .themes/greyshade added at 98c94a562d

1
.themes/whitespace Submodule

Submodule .themes/whitespace added at 177e80d141

View File

@ -3,7 +3,7 @@
# ----------------------- #
url: http://wona.github.com
title: WONA Blog
title: Watch Out! News Agency Blog
subtitle:
author: Watchout NewsAgency, IIT-R
simple_search: http://google.com/search
@ -90,7 +90,7 @@ delicious_count: 3
# Disqus Comments
disqus_short_name: wonablog
disqus_show_comment_count: true
disqus_show_comment_count: false
# Google Analytics
google_analytics_tracking_id: UA-35663579-1

View File

@ -1,5 +1,5 @@
@import "base/color";
@import "base/font";
@import "base/layout";
@import "base/utilities";
@import "base/solarized";
@import "base/theme";
@import "base/typography";
@import "base/utilities";
@import "base/layout";

View File

@ -1,8 +1,13 @@
//This is the main GREYSHADE css file.
//This is the main GREYSHADE css file.
html {
height: 100%;
}
body {
background: #3D4349;
font-family: "Open Sans", "HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,sans-serif;
height: 100%;
}
::selection, ::-moz-selection, ::-webkit-selection {
@ -39,7 +44,7 @@ body {
float: none;
margin-left: 0px;
ul {
ul {
li {
margin-left: 0px;
display: block;
@ -52,6 +57,9 @@ body {
}
.container {
position: relative;
min-height: 100%;
.credit-box {
color: #AAA;
font-size: .8em;
@ -64,9 +72,22 @@ body {
}
}
.mid-col {
float: right;
position: absolute;
right: 0;
min-height: 100%;
width: 77%;
background: whitesmoke;
#banner {
width: 100%;
small {
margin-right: 70px;
}
}
footer.inner {
text-align: center;
margin: 0px 70px 0px 40px;
width: auto;
}
.mid-col-container {
padding: 0px 70px 0px 40px;
#content {
@ -129,14 +150,14 @@ body {
-webkit-transition: color 0.3s;
-moz-transition: color 0.3s;
-o-transition: color 0.3s;
transition: color 0.3s;
transition: color 0.3s;
}
a:hover {
color: $greyshade;
-webkit-transition: color 0.3s;
-moz-transition: color 0.3s;
-o-transition: color 0.3s;
transition: color 0.3s;
transition: color 0.3s;
}
}
}
@ -242,7 +263,7 @@ body {
display: block;
}
#main-nav {
ul {
ul {
display: block;
li {
display: inline;

View File

@ -1,49 +1,192 @@
$max-width: 1000px;
$max-width: 1200px !default;
*{
margin: 0;
padding: 0;
// Padding used for layout margins
$pad-min: 18px !default;
$pad-narrow: 25px !default;
$pad-medium: 35px !default;
$pad-wide: 55px !default;
// Sidebar widths used in media queries
$sidebar-width-medium: 240px !default;
$sidebar-pad-medium: 15px !default;
$sidebar-pad-wide: 20px !default;
$sidebar-width-wide: 300px !default;
$indented-lists: false !default;
$header-font-size: 1em !default;
$header-padding-top: 1.5em !default;
$header-padding-bottom: 1.5em !default;
.group { @include pie-clearfix; }
@mixin collapse-sidebar {
float: none;
width: auto;
clear: left;
margin: 0;
padding: 0 $pad-medium 1px;
background-color: lighten($sidebar-bg, 2);
border-top: 1px solid lighten($sidebar-border, 4);
section {
&.odd, &.even { float: left; width: 48%; }
&.odd { margin-left: 0; }
&.even { margin-left: 4%; }
}
&.thirds section {
width: 30%;
margin-left: 5%;
&.first {
margin-left: 0;
clear: both;
}
}
}
body{
font-family: $font-default;
font-weight: 300;
font-size: 14px;
background: $color-background;
color: $color-gray01;
@media screen and (max-width: 1040px){
margin: 0 20px;
}
@media screen and (max-width: 600px){
font-size: 13px;
}
body {
-webkit-text-size-adjust: none;
max-width: $max-width;
position: relative;
margin: 0 auto;
> header, > nav, > footer, #content > article, #content > div > article, #content > div > section {
@extend .group;
padding-left: $pad-min;
padding-right: $pad-min;
@media only screen and (min-width: 480px) {
padding-left: $pad-narrow;
padding-right: $pad-narrow;
}
@media only screen and (min-width: 768px) {
padding-left: $pad-medium;
padding-right: $pad-medium;
}
@media only screen and (min-width: 992px) {
padding-left: $pad-wide;
padding-right: $pad-wide;
}
}
div.pagination {
@extend .group;
margin-left: $pad-min;
margin-right: $pad-min;
@media only screen and (min-width: 480px) {
margin-left: $pad-narrow;
margin-right: $pad-narrow;
}
@media only screen and (min-width: 768px) {
margin-left: $pad-medium;
margin-right: $pad-medium;
}
@media only screen and (min-width: 992px) {
margin-left: $pad-wide;
margin-right: $pad-wide;
}
}
> header {
font-size: $header-font-size;
padding-top: $header-padding-top;
padding-bottom: $header-padding-bottom;
}
}
h1{
font-size: 1.8em;
#content {
overflow: hidden;
> div, > article { width: 100%; }
}
h2{
font-size: 1.5em;
aside.sidebar {
float: none;
padding: 0 $pad-min 1px;
background-color: lighten($sidebar-bg, 2);
border-top: 1px solid $sidebar-border;
@extend .group;
}
h3{
font-size: 1.3em;
.flex-content { max-width: 100%; height: auto; }
.basic-alignment {
&.left { float: left; margin-right: 1.5em; }
&.right { float: right; margin-left: 1.5em; }
&.center { display:block; margin: 0 auto 1.5em; }
&.left, &.right { margin-bottom: .8em; }
}
a{
text-decoration: none;
outline-width: 0;
color: $color-main;
.toggle-sidebar { &, .no-sidebar & { display: none; }}
body.sidebar-footer {
@media only screen and (min-width: 750px) {
aside.sidebar{ @include collapse-sidebar; }
}
#content { margin-right: 0px; }
.toggle-sidebar { display: none; }
}
.alignleft{
float: left;
@media only screen and (min-width: 550px) {
body > header { font-size: $header-font-size; }
}
.alignright{
float: right;
@media only screen and (min-width: 750px) {
aside.sidebar { @include collapse-sidebar; }
}
.clearfix{
@include pie-clearfix;
#main, #content, .sidebar {
@extend .group;
}
.inner{
width: $max-width;
margin: 0 auto;
@media screen and (max-width: 1040px){
width: 100%;
}
}
@media only screen and (min-width: 768px) {
body { -webkit-text-size-adjust: auto; }
body > header { font-size: $header-font-size * 1.2; }
#main {
padding: 0;
margin: 0 auto;
}
#content {
overflow: visible;
margin-right: $sidebar-width-medium;
position: relative;
.no-sidebar & { margin-right: 0; border-right: 0; }
.collapse-sidebar & { margin-right: 20px; }
> div, > article {
padding-top: $pad-medium/2;
padding-bottom: $pad-medium/2;
float: left;
}
}
aside.sidebar {
width: $sidebar-width-medium - $sidebar-pad-medium*2;
padding: 0 $sidebar-pad-medium $sidebar-pad-medium;
background: none;
clear: none;
float: left;
margin: 0 -100% 0 0;
section {
width: auto; margin-left: 0;
&.odd, &.even { float: none; width: auto; margin-left: 0; }
}
.collapse-sidebar & {
@include collapse-sidebar;
}
}
}
@media only screen and (min-width: 992px) {
body > header { font-size: $header-font-size * 1.3; }
#content { margin-right: $sidebar-width-wide; }
#content {
> div, > article {
padding-top: $pad-wide/2;
padding-bottom: $pad-wide/2;
}
}
aside.sidebar {
width: $sidebar-width-wide - $sidebar-pad-wide*2;
padding: 1.2em $sidebar-pad-wide $sidebar-pad-wide;
.collapse-sidebar & {
padding: { left: $pad-wide; right: $pad-wide; }
}
}
}
@if $indented-lists == false {
@media only screen and (min-width: 768px) {
ul, ol { margin-left: 0; }
}
}

View File

@ -44,7 +44,6 @@ $sidebar-border: desaturate(darken($sidebar-bg, 7), 10) !default;
$sidebar-border-hover: darken($sidebar-bg, 7) !default;
$sidebar-link-color-subdued: lighten($sidebar-color, 20) !default;
$sidebar-link-color-subdued-hover: $sidebar-link-color-hover !default;
$twitter-status-link: lighten($sidebar-link-color-subdued, 15) !default;
$footer-color: #888 !default;
$footer-bg: #ccc !default;

View File

@ -1,3 +1,132 @@
$blockquote: $type-border !default;
// Fonts
$sans: "Open Sans","Helvetica Neue", Arial, sans-serif !default;
$serif: "PT Serif", Georgia, Times, "Times New Roman", serif !default;
$mono: Menlo, Monaco, "Andale Mono", "lucida console", "Courier New", monospace !default;
$heading-font-family: "Fjalla One", "Georgia", "Helvetica Neue", Arial, sans-serif !default;
$header-title-font-family: $heading-font-family !default;
$header-subtitle-font-family: $serif !default;
.heading {
font-family: $heading-font-family;
}
.sans { font-family: $sans; }
.serif { font-family: $serif; }
.mono { font-family: $mono; }
body > header h1 {
font-size: 2.2em;
@extend .heading;
font-family: $header-title-font-family;
font-weight: normal;
line-height: 1.2em;
margin-bottom: 0.6667em;
}
body > header h2 {
font-family: $header-subtitle-font-family;
}
body {
line-height: 1.5em;
color: $text-color;
@extend .serif;
}
h1 {
font-size: 2.2em;
line-height: 1.2em;
}
@media only screen and (min-width: 992px) {
body { font-size: 1.15em; }
h1 { font-size: 2.6em; line-height: 1.2em; }
}
#{headings()}{
@extend .heading;
text-rendering: optimizelegibility;
margin-bottom: 1em;
font-weight: bold;
}
h2, section h1 {
font-size: 1.5em;
}
h3, section h2, section section h1 {
font-size: 1.3em;
}
h4, section h3, section section h2, section section section h1 {
font-size: 1em;
}
h5, section h4, section section h3 {
font-size: .9em;
}
h6, section h5, section section h4, section section section h3 {
font-size: .8em;
}
p, article blockquote, ul, ol { margin-bottom: 1.5em; }
ul { list-style-type: disc;
ul { list-style-type: circle; margin-bottom: 0px;
ul { list-style-type: square; margin-bottom: 0px; }}}
ol { list-style-type: decimal;
ol { list-style-type: lower-alpha; margin-bottom: 0px;
ol { list-style-type: lower-roman; margin-bottom: 0px; }}}
ul, ol { &, ul, ol { margin-left: 1.3em; }}
ul, ol { ul, ol { margin-bottom: 0em; }}
strong { font-weight: bold; }
em { font-style: italic; }
sup, sub { font-size: 0.8em; position: relative; display: inline-block; }
sup { top: -.5em; }
sub { bottom: -.5em; }
q { font-style: italic;
&:before { content: "\201C"; }
&:after { content: "\201D"; }
}
em, dfn { font-style: italic; }
strong, dfn { font-weight: bold; }
del, s { text-decoration: line-through; }
abbr, acronym { border-bottom: 1px dotted; cursor: help; }
pre, code, tt { @extend .mono; }
sub, sup { line-height: 0; }
hr { margin-bottom: 0.2em; }
small { font-size: .8em; }
big { font-size: 1.2em; }
article blockquote {
$bq-margin: 1.2em;
font-style: italic;
position: relative;
font-size: 1.2em;
line-height: 1.5em;
padding-left: 1em;
border-left: 4px solid rgba($text-color-light, .5);
cite {
font-style: italic;
a { color: $text-color-light !important; word-wrap: break-word; }
&:before { content: '\2014'; padding:{right: .3em; left: .3em;} color: $text-color-light; }
}
@media only screen and (min-width: 992px) {
padding-left: 1.5em;
border-left-width: 4px;
}
}
.pullquote-right:before,
.pullquote-left:before {
/* Reset metrics. */
@ -23,4 +152,13 @@
/* Make left pullquotes align properly. */
float: left;
margin: .5em 1.5em 1em 0;
}
}
/* @extend this to force long lines of continuous text to wrap */
.force-wrap {
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
white-space: pre-wrap;
word-wrap: break-word;
}

View File

@ -1,24 +1,28 @@
@mixin square($property){
width: $property;
height: $property;
@mixin mask-image($img, $repeat: no-repeat){
@include experimental(mask-image, image-url($img), -webkit, -moz, -o, -ms);
@include experimental(mask-repeat, $repeat, -webkit, -moz, -o, -ms);
width: image-width($img);
height: image-height($img);
}
@mixin user-select($select){
-moz-user-select: $select;
-khtml-user-select: $select;
-webkit-user-select: $select;
-o-user-select: $select;
user-select: $select;
@mixin shadow-box($border: #fff .5em solid, $shadow: rgba(#000, .15) 0 1px 4px, $border-radius: .3em) {
@include border-radius($border-radius);
@include box-shadow($shadow);
@include box-sizing(border-box);
border: $border;
}
@mixin border-shadow($top: $color-gray05, $bottom: $color-gray04){
border-top: 1px solid $top;
border-bottom: 1px solid $bottom;
@mixin selection($bg, $color: inherit, $text-shadow: none){
* {
&::-moz-selection { background: $bg; color: $color; text-shadow: $text-shadow; }
&::-webkit-selection { background: $bg; color: $color; text-shadow: $text-shadow; }
&::selection { background: $bg; color: $color; text-shadow: $text-shadow; }
}
}
@mixin center($width, $height){
position: absolute;
top: 50%;
left: 50%;
margin-left: $width/(-2);
margin-top: $height/(-2);
width: $width;
height: $height;
}
@function text-color($color, $dark: dark, $light: light){
$text-color: ( (red($color)*299) + (green($color)*587) + (blue($color)*114) ) / 1000;
$text-color: if($text-color >= 150, $dark, $light);
@return $text-color;
}

8
sass/config.rb Normal file
View File

@ -0,0 +1,8 @@
http_path = "/"
css_dir = "."
sass_dir = "."
images_dir = "img"
javascripts_dir = "js"
output_style = :compressed
relative_assets=true
line_comments = false

View File

@ -16,7 +16,7 @@
/* To use the light Solarized highlighting theme uncomment the following line */
$solarized: light;
//$solarized: light;
/* If you want to tweak the Solarized colors you can do that here */
//$base03: #002b36; //darkest blue
@ -41,4 +41,3 @@ $solarized: light;
//$pre-bg: $base03;
//$pre-border: darken($base02, 5);
//$pre-color: $base1;
$greyshade: #258FB8;

View File

@ -2,9 +2,9 @@
// To give it a try, uncomment some of the lines below rebuild your blog, and see how it works. your sites's.
// If you love to use Web Fonts, you also need to add some lines to source/_includes/custom/head.html
//$sans: "Optima", sans-serif;
//$serif: "Baskerville", serif;
//$mono: "Courier", monospace;
//$heading-font-family: "Verdana", sans-serif;
//$header-title-font-family: "Futura", sans-serif;
//$header-subtitle-font-family: "Futura", sans-serif;
// $sans: "Open Sans","Helvetica Neue", Arial, sans-serif !default;
// $serif: "PT Serif", Georgia, Times, "Times New Roman", serif !default;
// $mono: Menlo, Monaco, "Andale Mono", "lucida console", "Courier New", monospace !default;
// $heading-font-family: "Fjalla One", "Georgia", "Helvetica Neue", Arial, sans-serif !default;
// $header-title-font-family: $heading-font-family !default;
// $header-subtitle-font-family: $serif !default;

View File

@ -1,14 +1,192 @@
// This File is imported last, and will override other styles in the cascade
// Add styles here to make changes without digging in too much
.archives {
.title {
font-size: 1.2em;
$white: #FFFFFF;
html {
background: $white;
}
body {
font-family: $sans !important;
font-size: 1em;
max-width: 850px;
padding-left: 0.5em;
padding-right: 0.5em;
> header {
background: $white;
text-align: center;
padding-left: 0px;
padding-right: 0px;
h1 {
a, a:visited, a:hover {
color: #8C8C8C;
font-family: $heading-font-family;
}
}
}
> nav {
background: $white;
border-bottom: 1px solid #F2F2F2;
padding-left: 0px;
padding-right: 0px;
form .search {
border-radius: 0.2em 0.2em 0.2em 0.2em;
box-shadow: none;
border: 0px;
padding-top: 0.3em;
padding-bottom: 0.3em;
padding-left: 0.5em;
padding-right: 0.5em;
}
a {
font-family: $sans;
font-size: 0.9em;
padding-top: 0.3em;
line-height: 1.5em;
}
li + li {
border-left: 0px;
a {
border-left: 0px;
}
}
}
> div {
background: $white;
border-bottom: 0px;
> div {
background: $white;
border-right-width: 0px;
}
}
> footer {
background: $white;
text-shadow: none;
color: #AAAAAA;
padding-left: 0;
padding-right: 0;
border-top: 0px;
padding-left: 0px;
padding-right: 0px;
}
#content {
> article {
padding-left: 0px;
padding-right: 0px;
}
> div {
> article, > section {
padding-left: 0px;
padding-right: 0px;
}
}
}
}
.internship-page {
margin-top: 50px;
margin-bottom: 30px;
article {
padding-top: 2em;
.entry-content {
h3 {
font-style: italic
}
}
ul, ol {
margin-left: 2em;
}
a, a:visited {
color: #1863A1;
}
header {
h1.entry-title {
font-family: $heading-font-family;
font-weight: 400;
}
}
}
#content {
div.pagination {
background: none repeat scroll 0 0 transparent;
margin: 0 10px;
font-size: 0.95em;
padding-bottom: 1.5em;
margin-top: 4em;
position: relative;
text-align: center;
border-top: dotted 1px #D1D1D1;
border-bottom: dotted 1px #D1D1D1;
}
.blog-index {
article {
padding-top: 4em;
header {
padding-left: 0;
padding-right: 0;
}
}
h1 {
a {
font-family: $heading-font-family;
font-weight: 400;
}
a:hover {
text-decoration: none;
}
}
}
.hentry {
h1.entry-title {
font-family: $heading-font-family;
font-weight: 400;
font-size: 2.2em;
}
}
}
figure.code {
.highlight {
background: #212C3B !important;
.gutter {
display: none;
}
}
}
.pre-code, html .gist .gist-file .gist-syntax .highlight pre, .highlight code {
background: #212C3B !important;
}
aside {
display: none;
}
.authorline {
font-style: italic;
padding-bottom: 10px;
margin-top: -20px;
color: #aaa;
}

8
sass/custom/config.rb Normal file
View File

@ -0,0 +1,8 @@
http_path = "/"
css_dir = "."
sass_dir = "."
images_dir = "img"
javascripts_dir = "js"
output_style = :compressed
relative_assets=true
line_comments = false

View File

@ -1,5 +1,4 @@
@import "sidebar/base";
@import "sidebar/twitter";
@import "sidebar/googleplus";
@import "sidebar/pinboard";
@import "sidebar/delicious";

View File

@ -1,44 +1,52 @@
.highlight, html .gist .gist-file .gist-syntax .gist-highlight {
table td.code { width: 100%; }
.line-numbers {
text-align: right;
font-size: 13px;
line-height: 1.45em;
@if $solarized == light {
background: lighten($base03, 1) $noise-bg !important;
border-right: 1px solid darken($base02, 2) !important;
@include box-shadow(lighten($base03, 2) -1px 0 inset);
text-shadow: lighten($base02, 2) 0 -1px;
} @else {
background: $base02 $noise-bg !important;
border-right: 1px solid darken($base03, 2) !important;
@include box-shadow(lighten($base02, 2) -1px 0 inset);
text-shadow: darken($base02, 10) 0 -1px;
}
span { color: $base01 !important; }
padding: .8em !important;
@include border-radius(0);
}
border: 1px solid $pre-border !important;
}
.highlight .line-numbers, html .gist .gist-file .gist-syntax .highlight .line_numbers {
text-align: right;
font-size: 13px;
line-height: 1.45em;
@if $solarized == light {
background: lighten($base03, 1) $noise-bg !important;
border-right: 1px solid darken($base02, 2) !important;
@include box-shadow(lighten($base03, 2) -1px 0 inset);
text-shadow: lighten($base02, 2) 0 -1px;
} @else {
background: $base02 $noise-bg !important;
border-right: 1px solid darken($base03, 2) !important;
@include box-shadow(lighten($base02, 2) -1px 0 inset);
text-shadow: darken($base02, 10) 0 -1px;
}
span { color: $base01 !important; }
padding: .8em !important;
@include border-radius(0);
}
figure.code, .gist-file, pre {
@include box-shadow(rgba(#000, .06) 0 0 10px);
.highlight pre { @include box-shadow(none); }
}
.gist .highlight, figure.code .highlight {
@include selection(adjust-color($base03, $lightness: 23%, $saturation: -65%), $text-shadow: $base03 0 1px);
}
html .gist .gist-file {
margin-bottom: 1.8em;
position: relative;
border: none;
padding-top: image-height("code_bg.png") !important;
.highlight {
margin-bottom: 0;
}
.gist-syntax {
border-bottom: 0 !important;
background: none !important;
.gist-highlight{
.gist-highlight {
background: $base03 !important;
pre {
@extend .pre-code;
}
}
.highlight pre {
@extend .pre-code;
padding: 0;
}
}
.gist-meta {
@ -107,12 +115,11 @@ p, li {
}
.pre-code {
@include selection(adjust-color($base03, $lightness: 23%, $saturation: -65%), $text-shadow: $base03 0 1px);
font-family: $mono !important;
overflow: scroll;
overflow-y: hidden;
display: block;
padding: .8em !important;
padding: .8em;
overflow-x: auto;
line-height: 1.45em;
background: $base03 $noise-bg !important;
@ -187,7 +194,7 @@ p, li {
}
.highlight, .gist-highlight {
pre { background: none; @include border-radius(none); border: none; padding: 0; margin-bottom: 0; }
pre { background: none; @include border-radius(0px); border: none; padding: 0; margin-bottom: 0; }
margin-bottom: 1.8em;
background: $base03;
overflow-y: hidden;
@ -206,7 +213,9 @@ pre, .highlight, .gist-highlight {
&::-webkit-scrollbar-thumb:horizontal { background: $solar-scroll-thumb; -webkit-border-radius: 4px; border-radius: 4px }
}
.highlight code { @extend .pre-code; background: #000;}
.highlight code {
@extend .pre-code; background: #000;
}
figure.code {
background: none;
padding: 0;
@ -232,7 +241,7 @@ figure.code {
font-weight: normal;
margin-bottom: 0;
@include border-top-radius(5px);
font-family: "Helvetica Neue", Arial, "Lucida Grande", "Lucida Sans Unicode", Lucida, sans-serif;
font-family: $sans;
background: #aaaaaa image-url("code_bg.png") top repeat-x;
border: 1px solid #565656;
border-top-color: #cbcbcb;
@ -250,4 +259,3 @@ figure.code {
text-shadow: #cbcccc 0 1px 0;
padding-left: 3em;
}

View File

@ -67,7 +67,7 @@
}
.date:before{content: "\f073";}
.tags:before{content: "\f02c";}
.comments:before{content: "\f075";}
.comments:before{content: "\f075"; padding-right: 10px; }
}
}
}

View File

@ -71,6 +71,7 @@ article{
img, video{
max-width: 100%;
height: auto;
@extend .basic-alignment;
}
blockquote{
background: $color-gray04;
@ -137,4 +138,4 @@ article{
.share{
padding: 15px 0;
@include border-shadow();
}
}

View File

@ -369,6 +369,13 @@ $header-height: 30px;
border: 1px solid darken(rgb(50,113,203), 10%);
}
}
&.pinboard{
background: image-url('social/pinboard.png') center no-repeat rgb(0,102,200);
border: 1px solid rgb(58,114,159);
&:hover{
border: 1px solid darken(rgb(0,102,255), 10%);
}
}
&.rss{
background: image-url('social/rss.png') center no-repeat #EF7522;
border: 1px solid #EF7522;

View File

@ -40,4 +40,13 @@
.tags:before{content: "\f02c";}
.comments:before{content: "\f075";}
}
hr{
height: 0;
margin-top: 20px;
margin-bottom: 20px;
border-left: 0;
border-right: 0;
border-top: 1px solid #DDD;
border-bottom: 1px solid #FFF;
}
}

View File

@ -0,0 +1,6 @@
/*
Add plugin stylesheets to this directory and they will be automatically
Imported. Load order is alphabetical and styles can be overriden in
custom/_style.scss which is loaded after all plugin stylesheets.
*/

View File

@ -1,12 +1,11 @@
@import "compass";
@import "base";
@import "parts";
@import "plugins";
@include global-reset;
@include reset-html5;
@import "custom/colors";
@import "greyshade";
@import "custom/fonts";
@import "custom/layout";
@import "custom/styles";
@import "base";
@import "partials";
@import "plugins";
@import "custom/styles";

View File

@ -1,5 +1,5 @@
<script src="{{ root_url }}/javascripts/slash.js"></script>
{% include fancybox.html %} <!-- Delete or comment this line to disable Fancybox -->
{% include disqus.html %}
{% include google_analytics.html %}
{% include custom/after_footer.html %}
{% include facebook_like.html %}
{% include google_plus_one.html %}
{% include twitter_sharing.html %}
{% include custom/after_footer.html %}

View File

@ -1,20 +1,8 @@
{% capture date %}{{ post.date }}{% endcapture %}
{% capture this_year %}{{ date | date: "%Y" }}{% endcapture %}
{% unless year == this_year %}
{% assign year = this_year %}
{% unless forloop.first %}
</section>
{% endunless %}
<section class="archives"><h1 class="year">{{ date | date: "%Y" }}</h1>
{% endunless %}
<article>
<div class="meta">
<span class="date">{{ date | date: "%b %e" }}</span>
<br>
<span class="tags">{% include post/categories.html %}</span>
{% if site.disqus_short_name and post.comments == true and site.disqus_show_comment_count == true %}
<span class="comments"><a href="{{ root_url }}{{ post.url }}#disqus_thread">Comments</a></span>
{% endif %}
</div>
<h1 class="title"><a href="{{ root_url }}{{ post.url }}">{{post.title}}</a></h1>
</article>
{% capture category %}{{ post.categories | size }}{% endcapture %}
<h1><a href="{{ root_url }}{{ post.url }}">{{post.title}}</a></h1>
<time datetime="{{ post.date | datetime | date_to_xmlschema }}" pubdate>{{ post.date | date: "<span class='month'>%b</span> <span class='day'>%d</span> <span class='year'>%Y</span>"}}</time>
{% if category != '0' %}
<footer>
<span class="categories">posted in {{ post.categories | category_links }}</span>
</footer>
{% endif %}

View File

@ -1,18 +1,28 @@
{% unless page.no_header %}
<header>
{% if index %}
<h1 class="entry-title"><a href="{{ root_url }}{{ post.url }}">{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}</a></h1>
{% else %}
<h1 class="entry-title">{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}</h1>
{% endif %}
{% unless page.meta == false %}
<p class="meta">
{% include post/date.html %}{{ time }}
{% if site.disqus_short_name and page.comments != false and post.comments != false and site.disqus_show_comment_count == true %}
| <a href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread">Comments</a>
{% endif %}
</p>
{% endunless %}
</header>
{% endunless %}
{% if index %}
<div class="meta">
<div class="date">{% include post/date.html %}{{ time }}</div>
<div class="tags">{% include post/categories.html %}</div>
{% if site.disqus_short_name and site.disqus_show_comment_count == true %}
<span class="comments"><a href="{{ root_url }}{{ post.url }}#disqus_thread">Comments</a></span>
{% endif %}
</div>
<h1 class="title"><a href="{{ root_url }}{{ post.url }}">{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}</a></h1>
<div class="entry-content">
{{ content | excerpt }}
{% capture excerpted %}{{ content | has_excerpt }}{% endcapture %}
{% if excerpted == 'true' %}<a href="{{ root_url }}{{ post.url }}" class="more-link">{{ site.excerpt_link }}</a>{% endif %}
</div>
<div class="entry-content">{{ content | excerpt }}</div>
{% capture excerpted %}{{ content | has_excerpt }}{% endcapture %}
{% if excerpted == 'true' %}
<footer>
<a rel="full-article" href="{{ root_url }}{{ post.url }}">{{ site.excerpt_link }}</a>
</footer>
{% endif %}
{% else %}
<h1 class="title">{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}</h1>
<div class="entry-content">{{ content }}</div>
<div class="entry-content">{{ content }}</div>
{% endif %}

View File

@ -8,7 +8,7 @@
<a href="https://github.com/{{site.github_user}}">@{{site.github_user}}</a> on GitHub
{% endif %}
<script type="text/javascript">
$.domReady(function(){
$(document).ready(function(){
if (!window.jXHR){
var jxhr = document.createElement('script');
jxhr.type = 'text/javascript';

View File

@ -0,0 +1,3 @@
{% comment %}
Add content to be output at the bottom of each page. (You might use this for analytics scripts, for example)
{% endcomment %}

View File

@ -1,7 +1,4 @@
Copyright &copy; {{ site.time | date: "%Y" }}
{% if site.author %}
{{ site.author }}
{% else %}
{{ site.title }}
{% endif %}
Powered by Octopress
<p>
Copyright &copy; {{ site.time | date: "%Y" }} - {{ site.author }} -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>

View File

@ -1 +1,4 @@
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,700' rel='stylesheet' type='text/css'>
<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Fjalla+One' rel='stylesheet' type='text/css'>

View File

@ -1 +1,6 @@
<hgroup>
<h1><a href="{{ root_url }}/">{{ site.title }}</a></h1>
{% if site.subtitle %}
<h2>{{ site.subtitle }}</h2>
{% endif %}
</hgroup>

View File

@ -1,7 +1,5 @@
<ul class="main">
<li><a href="{{ root_url }}/">Blog</a></li>
<li><a href="{{ root_url }}/blog/archives">Post Index</a></li>
<li><a href="{{ root_url }}/blog/index">Magazine Archives</a></li>
<li><a href="{{ root_url }}/blog/internship">Internship</a></li>
<ul class="main-navigation">
<li><a href="{{ root_url }}/">Blog</a></li>
<li><a href="{{ root_url }}/blog/archives">Blog Archives</a></li>
<li><a href="https://www.facebook.com/WatchOutNewsAgency">Facebook</a></li>
</ul>

View File

@ -3,7 +3,7 @@
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js = d.createElement(s); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js#appId=212934732101925&xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

View File

@ -1,2 +1 @@
{% include custom/footer.html %}
Design credit: <a href="http://shashankmehta.in/archive/2012/greyshade.html">Shashank Mehta</a>

View File

@ -1,13 +1,13 @@
{% if site.google_analytics_tracking_id %}
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{ site.google_analytics_tracking_id }}']);
_gaq.push(['_trackPageview']);
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{ site.google_analytics_tracking_id }}']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
{% endif %}

View File

@ -1,27 +1,30 @@
<!DOCTYPE HTML>
<html>
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
<meta name="author" content="{{ site.author }}">
<meta charset="utf-8">
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
<meta name="author" content="{{ site.author }}">
{% capture description %}{% if page.description %}{{ page.description }}{% else %}{{ content | raw_content }}{% endif %}{% endcapture %}
<meta name="description" content="{{ description | strip_html | condense_spaces | truncate:150 }}">
{% if page.keywords %}<meta name="keywords" content="{{ page.keywords }}">{% endif %}
{% capture description %}{% if page.description %}{{ page.description }}{% else %}{{ content | raw_content }}{% endif %}{% endcapture %}
<meta name="description" content="{{ description | strip_html | condense_spaces | truncate:150 }}">
{% if page.keywords %}<meta name="keywords" content="{{ page.keywords }}">{% endif %}
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="{{ site.subscribe_rss }}" rel="alternate" title="{{site.title}}" type="application/atom+xml">
{% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' }}{% endif %}{% endcapture %}
<link rel="canonical" href="{{ canonical }}">
<link href="{{ root_url }}/favicon.png" rel="shortcut icon">
<link href="{{ root_url }}/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,700' rel='stylesheet' type='text/css'>
{% include custom/head.html %}
{% include google_analytics.html %}
</head>
{% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %}
<link rel="canonical" href="{{ canonical }}">
<link href="{{ root_url }}/favicon.png" rel="icon">
<link href="{{ root_url }}/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<link href="{{ site.subscribe_rss }}" rel="alternate" title="{{site.title}}" type="application/atom+xml">
<script src="{{ root_url }}/javascripts/modernizr-2.0.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>!window.jQuery && document.write(unescape('%3Cscript src="./javascripts/lib/jquery.min.js"%3E%3C/script%3E'))</script>
<script src="{{ root_url }}/javascripts/octopress.js" type="text/javascript"></script>
{% include custom/head.html %}
{% include google_analytics.html %}
</head>

View File

@ -1,35 +1 @@
<div class="profilepic">
<img src="/images/dp.jpg" alt="Profile Picture" style="width: 160px;">
</div>
<h1><a href="{{ root_url }}/">{{ site.title }}</a></h1>
<p class="subtitle">{{ site.subtitle }}</p>
<nav id="main-nav">{% include navigation.html %}</nav>
<nav id="sub-nav">
<div class="social">
{% if site.facebook_user %}
<a class="facebook" href="http://www.facebook.com/{{ site.facebook_user }}" title="Facebook">Facebook</a>
{% endif %}
{% if site.googleplus_user and site.googleplus_hidden == false %}
<a class="google" href="https://plus.google.com/{{ site.googleplus_user }}?rel=author" title="Google+">Google+</a>
{% endif %}
{% if site.twitter_user %}
<a class="twitter" href="http://twitter.com/{{ site.twitter_user }}" title="Twitter">Twitter</a>
{% endif %}
{% if site.github_user %}
<a class="github" href="https://github.com/{{ site.github_user }}" title="GitHub">GitHub</a>
{% endif %}
{% if site.linkedin_user %}
<a class="linkedin" href="http://www.linkedin.com/in/{{ site.linkedin_user }}">LinkedIn</a>
{% endif %}
{% if site.pinterest_user %}
<a class="pinterest" href="https://pinterest.com/{{ site.pinterest_user }}" title="Pinterest">Pinterest</a>
{% endif %}
{% if site.delicious_user %}
<a class="delicious" href="http://delicious.com/{{ site.delicious_user }}" title="Delicious">Delicious</a>
{% endif %}
{% if site.subscribe_rss %}
<a class="rss" href="{{ site.subscribe_rss }}" title="RSS">RSS</a>
{% endif %}
</div>
</nav>
{% include custom/header.html %}

View File

@ -0,0 +1,52 @@
{% comment %} Load script if Juvia comments are enabled and `page.comments` is either empty (index) or set to true {% endcomment %}
{% if site.juvia_site_key and site.juvia_host and page.comments != false %}
<script type="text/javascript" class="juvia">
(function() {
var options = {
container : '#juvia_thread',
site_key : '{{ site.juvia_site_key }}',
topic_key : location.pathname,
topic_url : location.href,
topic_title : document.title || location.href,
include_base: !window.Juvia,
include_css : !window.Juvia,
comment_order: '{{ site.juvia_comment_order }}'
};
function makeQueryString(options) {
var key, params = [];
for (key in options) {
params.push(
encodeURIComponent(key) +
'=' +
encodeURIComponent(options[key]));
}
return params.join('&');
}
function makeApiUrl(options) {
// Makes sure that each call generates a unique URL, otherwise
// the browser may not actually perform the request.
if (!('_juviaRequestCounter' in window)) {
window._juviaRequestCounter = 0;
}
var result =
'http://{{ site.juvia_host }}/api/show_topic.js' +
'?_c=' + window._juviaRequestCounter +
'&' + makeQueryString(options);
window._juviaRequestCounter++;
return result;
}
var s = document.createElement('script');
s.async = true;
s.type = 'text/javascript';
s.className = 'juvia';
s.src = makeApiUrl(options);
(document.getElementsByTagName('head')[0] ||
document.getElementsByTagName('body')[0]).appendChild(s);
})();
</script>
{% endif %}

View File

@ -1 +1,15 @@
{% include custom/navigation.html %}
<ul class="subscription" data-subscription="rss{% if site.subscribe_email %} email{% endif %}">
<li><a href="{{ site.subscribe_rss }}" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
{% if site.subscribe_email %}
<li><a href="{{ site.subscribe_email }}" rel="subscribe-email" title="subscribe via email">Email</a></li>
{% endif %}
</ul>
{% if site.simple_search %}
<form action="{{ site.simple_search }}" method="get">
<fieldset role="search">
<input type="hidden" name="q" value="site:{{ site.url | shorthand_url }}" />
<input class="search" type="text" name="q" results="0" placeholder="Search"/>
</fieldset>
</form>
{% endif %}
{% include custom/navigation.html %}

View File

@ -1,8 +1,10 @@
{% capture category %}{% if post %}{{ post.categories | category_links | size }}{% else %}{{ page.categories | category_links | size }}{% endif %}{% endcapture %}
{% unless category == '0' %}
{% if post %}
{{ post.categories | category_links }}
{% else %}
{{ page.categories | category_links }}
{% endif %}
<span class="categories">
{% if post %}
{{ post.categories | category_links }}
{% else %}
{{ page.categories | category_links }}
{% endif %}
</span>
{% endunless %}

View File

@ -0,0 +1 @@
<noscript>Please enable JavaScript to view the comments powered by Juvia.</noscript>

View File

@ -1,15 +1,11 @@
<div class="share">
<div class="addthis_toolbox addthis_default_style ">
{% if site.facebook_like %}
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
{% endif %}
{% if site.twitter_tweet_button %}
<a class="addthis_button_tweet"></a>
{% endif %}
{% if site.google_plus_one %}
<a class="addthis_button_google_plusone" g:plusone:size="{{ site.google_plus_one_size }}"></a>
{% endif %}
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid={{ site.addthis_profile_id }}"></script>
<div class="sharing">
{% if site.twitter_tweet_button %}
<a href="http://twitter.com/share" class="twitter-share-button" data-url="{{ site.url }}{{ page.url }}" data-via="{{ site.twitter_user }}" data-counturl="{{ site.url }}{{ page.url }}" >Tweet</a>
{% endif %}
{% if site.google_plus_one %}
<div class="g-plusone" data-size="{{ site.google_plus_one_size }}"></div>
{% endif %}
{% if site.facebook_like %}
<div class="fb-like" data-send="true" data-width="450" data-show-faces="false"></div>
{% endif %}
</div>

View File

@ -1,7 +1,17 @@
---
layout: default
layout: page
footer: false
---
<div id="blog-archives" class="category">
{% for post in site.categories[page.category] %}
{% include archive_post.html %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% unless year == this_year %}
{% assign year = this_year %}
<h2>{{ year }}</h2>
{% endunless %}
<article>
{% include archive_post.html %}
</article>
{% endfor %}
</div>

View File

@ -1,23 +1,14 @@
{% capture root_url %}{{ site.root | strip_slash }}{% endcapture %}
{% include head.html %}
<body>
<div class="container">
<div class="left-col">
<div class="intrude-less">
<header id="header" class="inner">{% include header.html %}</header>
</div>
</div>
<div class="mid-col">
{% unless page.banner == false %}
{% include banner.html %}
{% endunless %}
<div class="mid-col-container">
<div id="content" class="inner">{{ content | expand_urls: root_url }}</div>
</div>
<footer id="footer" class="inner">{% include footer.html %}</footer>
{% include after_footer.html %}
</div>
</div>
<body {% if page.body_id %} id="{{ page.body_id }}" {% endif %} {% if page.sidebar == false %} class="no-sidebar" {% endif %} class="collapse-sidebar sidebar-footer" >
<header role="banner">{% include header.html %}</header>
<nav role="navigation">{% include navigation.html %}</nav>
<div id="main">
<div id="content">
{{ content | expand_urls: root_url }}
</div>
</div>
<footer role="contentinfo">{% include footer.html %}</footer>
{% include after_footer.html %}
</body>
</html>

View File

@ -2,18 +2,47 @@
layout: default
---
<article class="page">
{% if page.title %}
<h1 class="title">{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}</h1>
{% endif %}
<div class="entry-content">{{ content }}</div>
<div>
<article role="article">
{% if page.title %}
<header>
<h1 class="entry-title">{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}</h1>
{% if page.date %}<p class="meta">{% include post/date.html %}{{ time }}</p>{% endif %}
</header>
{% endif %}
{{ content }}
{% unless page.footer == false %}
<footer>
{% if page.date or page.author %}<p class="meta">
{% if page.author %}{% include post/author.html %}{% endif %}
{% include post/date.html %}{% if updated %}{{ updated }}{% else %}{{ time }}{% endif %}
{% if page.categories %}{% include post/categories.html %}{% endif %}
</p>{% endif %}
{% unless page.sharing == false %}
{% include post/sharing.html %}
{% endunless %}
</footer>
{% endunless %}
</article>
{% unless page.sharing == false %}
{% include post/sharing.html %}
{% endunless %}
{% if site.disqus_short_name and page.comments == true %}
<section id="comment">
<h1 class="title">Comments</h1>
<section>
<h1>Comments</h1>
<div id="disqus_thread" aria-live="polite">{% include post/disqus_thread.html %}</div>
</section>
</section>
{% endif %}
{% if site.juvia_site_key and page.comments == true %}
<section>
<h1>Comments</h1>
<div id="juvia_thread" aria-live="polite">{% include post/juvia_thread.html %}</div>
</section>
{% endif %}
</div>
{% unless page.sidebar == false %}
<aside class="sidebar">
{% if site.page_asides.size %}
{% include_array page_asides %}
{% else %}
{% include_array default_asides %}
{% endif %}
</aside>
{% endunless %}

View File

@ -3,13 +3,47 @@ layout: default
single: true
---
<article class="post">{% include article.html %}</article>
{% unless page.sharing == false %}
{% include post/sharing.html %}
{% endunless %}
<div>
<article class="hentry" role="article">
{% include article.html %}
<footer>
<p class="meta">
{% include post/author.html %}
{% include post/date.html %}{% if updated %}{{ updated }}{% else %}{{ time }}{% endif %}
{% include post/categories.html %}
</p>
{% unless page.sharing == false %}
{% include post/sharing.html %}
{% endunless %}
<p class="meta">
{% if page.previous.url %}
<a class="basic-alignment left" href="{{page.previous.url}}" title="Previous Post: {{page.previous.title}}">&laquo; {{page.previous.title}}</a>
{% endif %}
{% if page.next.url %}
<a class="basic-alignment right" href="{{page.next.url}}" title="Next Post: {{page.next.title}}">{{page.next.title}} &raquo;</a>
{% endif %}
</p>
</footer>
</article>
{% if site.disqus_short_name and page.comments == true %}
<section id="comment">
<h1 class="title">Comments</h1>
<section>
<h1>Comments</h1>
<div id="disqus_thread" aria-live="polite">{% include post/disqus_thread.html %}</div>
</section>
{% endif %}
</section>
{% endif %}
{% if site.juvia_site_key and page.comments == true %}
<section>
<h1>Comments</h1>
<div id="juvia_thread" aria-live="polite">{% include post/juvia_thread.html %}</div>
</section>
{% endif %}
</div>
{% unless page.sidebar == false %}
<aside class="sidebar">
{% if site.post_asides.size %}
{% include_array post_asides %}
{% else %}
{% include_array default_asides %}
{% endif %}
</aside>
{% endunless %}

View File

@ -12,10 +12,10 @@ A recent survey[1] established that cribbing is the third most popular activity
2) A certain activity that takes place in the dark inside hostel rooms under sheets. (I was talking about sleeping, you sick pervert)
It is no secret that finding the words 'satisfied', 'Roorkee' and 'IITian' in the same sentence is as common as finding Salman Khan with a shirt on. But I digress from Salman Khan's attire.
One of our favourite whineyards is the absence of good electives. Every semester before the endsems, IMG (now Campus Skunk) opens its floodgates exposing the naive R-ites to hitherto unheard of terms like Cosmetology, Snorkelling and <a href="http://entomology.oregonstate.edu/" target="_blank">Far side Entomology</a>. The experienced lot are forced to disown trivialities like interest and learning in favour of easy proxies, no backs and the absence of an 8AM class. I recollect <a href="http://wona.co.in/index.php?option=com_rubberdoc&amp;view=doc&amp;id=16&amp;format=raw&amp;Itemid=42" target="_blank">an article from my first year</a> in the moronic magazine, aptly titled "Hobson's Choice: All roads lead to the earthquake department". But no more! With the influx of many a young turk, the days of gerontocracy were over. The institute had final woken to the sound of the clarion. New electives with fancy names were floated by departments above the slope, and held in class rooms that were actually near Nesci. The times, they were a-changing.
<!--more-->
One of our favourite whineyards is the absence of good electives. Every semester before the endsems, IMG (now Campus Skunk) opens its floodgates exposing the naive R-ites to hitherto unheard of terms like Cosmetology, Snorkelling and <a href="http://entomology.oregonstate.edu/" target="_blank">Far side Entomology</a>. The experienced lot are forced to disown trivialities like interest and learning in favour of easy proxies, no backs and the absence of an 8AM class. I recollect <a href="http://wona.co.in/index.php?option=com_rubberdoc&amp;view=doc&amp;id=16&amp;format=raw&amp;Itemid=42" target="_blank">an article from my first year</a> in the moronic magazine, aptly titled "Hobson's Choice: All roads lead to the earthquake department". But no more! With the influx of many a young turk, the days of gerontocracy were over. The institute had final woken to the sound of the clarion. New electives with fancy names were floated by departments above the slope, and held in class rooms that were actually near Nesci. The times, they were a-changing.
"Enough was enough", I came to a conclusion. "I am in an IIT to learn, and learn I will". So I registered for one of those baroque, hard-to-pronounce electives offered by the MIT return. Four months later I enter my first class five minutes late, having missed 3 classes the previous week. Cold walls and the icy demeanour of 20-odd enthusiastic (read ghissu/muggu) juniors greet me. The young lecturer coolly informs me that I have missed five attendances as he had to take two extra classes the previous week, and a even a single case of absenteeism hence will result in my not being able to write the exams. "Oh and by the way, we have extra field trips too. Two hours every week in a field pulling strings to understand what String theory really is", he added with glee. Any wise man in my situation would have decided to go on and take the bull by its horns. But that wise man was not I. And so I decided to throw the towel.
2 Days, 101 signatures and a few thousand applications later, I was one of the teeming millions in an elective offered by a department dealing with disasters. "But sir", I argued. "How can anyone not appreciate the subtleties of Fire-Extinguising 101'. An argument that he could never refute thanks to generations of farzi* seniors who had populated the course and proven beyond doubt that Fire extinguishing was indeed every engineer's ultimate fantasy.

View File

@ -5,6 +5,10 @@ date: 2011-09-04 12:26
comments: true
categories:
---
<div class="authorline">
By Mrinal Tripathi, III Year, Chem
</div>
I swear,
“I never was the purple cow
I only got to see some

View File

@ -5,6 +5,9 @@ date: 2011-09-04 16:05
comments: true
categories:
---
<div class="authorline">
By MK Arun Kumar, IV Year, Meta
</div>
There comes a time in every persons life when he is asked to bark like a dog in front of a few extraordinary gentlemen, his selection into their beloved organisation conditional on him performing said demeaning task. He can choose to swallow the ignominy in silence and leave the scene without making a fuss. Or he could accept the challenge as his forthcoming baptism by fire, and get ready to unleash the canine within him in all its guttural glory. Either way, he risks getting stuck with a life-long regret. On an eventful early August afternoon 6 semesters ago, some higher power decreed that I throw caution to the winds and bark my heart out. In a life characterised by idiocy and imprudence, that remains one of the wiser decisions I have ever made.

View File

@ -5,6 +5,10 @@ date: 2011-09-19 17:13
comments: true
categories:
---
<div class="authorline">
By Hetu Ashara, III Year, Elec
</div>
Not so long long ago was a man of great valour. A bastion of strength. A man with a spirit to conquer the world. An astonishing urge to dominate the world. Stand what may come attitude bolstered by a unprecedented determination, flaring through the eyes. No one even lurked near him, such was his aura. After a worthy yet connoting introduction I present to you ladies and gentlemen the protagonist - GHISSU .
Ghissu was a boy of straight A+s. He demoralized the professors (!) of his college by hitting a spot on, bulls eye, perfect 10 SGPA in the first semester. He had achieved this unique feat all thanks to the qualities described above.

View File

@ -5,6 +5,10 @@ date: 2011-09-23 11:14
comments: true
categories:
---
<div class="authorline">
By Bhavya Vats, III Year, Meta
</div>
<strong>Roorkee</strong> The day when his fellow inmates were hailing the newly operational 1 Gbps internet by putting up status updates on the social networking site Facebook, a 3rd year B. Tech student at Radhakrishnan Bhawan, IIT Roorkee created an uproar in his hostel wing by putting up a controversial status.

View File

@ -5,6 +5,9 @@ date: 2011-10-19 13:19
comments: true
categories:
---
<div class="authorline">
By Nisha C, III Year, Mech
</div>
Yesterday morning I had found my cycle punctured when I had already been running late to class by five minutes. Irked at my cycle's betrayal, struck by the sudden realization that I had no time for an afternoon nap, having the accuser in me smirking at the guilty mulling over how nothing useful had transpired during the vacations, I was convinced that that was the best time for apocalypse. In fact, I was so convinced that I removed the otherwise pointless drawing sheet with very ugly views of die-casters, acting as a sun-shield, from my head, in a move to encounter whatever, head on. Stumbling feebly across the road, there was a puny little kid, who, in a series of serendipitous events, was evading being hit by vehicles honking and zooming past her.

View File

@ -5,11 +5,17 @@ date: 2011-10-24 04:56
comments: true
categories:
---
<div class="authorline">
By Abhishek Pandey, III Year, Meta
</div>
You told me to observe and learn from everything that happened around me. That way you said I would grow up to be an intelligent man. But of late it feels I have seen enough. Every new thing is not exactly new. Every event differs from its predecessor in the mode in which it occurs. The underlying sentiments somehow seem to be the same everywhere. I want to share something with you.
<!--more-->
Just next to my hostel, in college, there is a small playground. Its not actually that large to be called a playground, just a small stretch of underutilized land. At one end of this stretch there are a few residential quarters, allotted to the mess workers. Twenty steps from these quarters is a small Shiv temple. From the bathroom of the floor I live in, one gets a clear view of the temple and the quarters. So every time I went to brush my teeth in the mornings or to take a bath, I would come across their life, their style of living. Basic stuff they did in the morning. Men of the household sipping tea, reading the newspaper while the women used to cut vegetables sitting by, preparing breakfast. Watching them do all this stuff became a routine for me as well. Nothing of that was much of my interest, except for one thing. Every day the old lady of the house would walk with the youngest kid to the Shiv temple and offer her prayers. The kid absolutely oblivious of what his grandmother was chanting would just close his eyes and bowed his head down. This scene reminded me vividly of how I as a kid used to travel to the nearby temple with grandmother. This thought made me happy and somehow it felt as if the day had begun well.
<!--more-->
All of this happened before I went home for the holidays.
The house does not stand anymore.

View File

@ -5,6 +5,9 @@ date: 2011-11-22 06:14
comments: true
categories:
---
<div class="authorline">
By an anonymous crusader
</div>
Our institute takes a rather ambiguous stance on the attendance shortage rule. While technically, a student should be forced to repeat a course if his attendance falls below that magical 75% mark, this dictum seldom comes into play owing to general leniency shown by professors and departments. Unless the figure under consideration has reached unspeakably abysmal levels, in which case the student probably knows whats coming. Regardless of the course or professor or department in question, students generally breathe easy if they are somewhere near the 65 to 70% mark.

View File

@ -5,10 +5,15 @@ date: 2012-01-11 15:37
comments: true
categories:
---
<div class="authorline">
By Abhishek Pandey, IV Year, Chem
</div>
The summers are always long. No matters how good a family you got, or how much money to spend; they do at some point or other start boring you. The point is everybody starts looking out for unconventional ways of killing time.
I am 21, single, with no interest left in my education. I am miserable. Therefore my drive to find crazy ways to kill my time is much stronger than the rest of the population. One such way is dirt biking. I usually take my bike out in the morning or late evenings and set off to far off villages. Well most of these villages are not electrified, neither does any of them has roads laid out. I believe that these villages can be developed as great dirt biking locations, although I am not pretty much certain that they are fit enough for human settlement. During one such expedition I came face to face with what movie analysts would call dark comedy.
<!--more-->
There is this hamlet called Haidurganj on the Gorakhpur-Basti highway. This Muslim dominated locality is exactly like the dozen other villages spread across the highway, except for the fact that it has a mosque which is more magnificent than any other you would find in entire Gorakhpur. The floor is entirely laid with high quality marble. The marble was specially imported from Rajasthan for the construction of the mosque. There is brilliant calligraphy done on the inner side of the dome wall. It would make Steve Jobs proud. Rahman Chacha tells me those are verses from the Quran. He knows the best. He did it.
However its not the mosque which brought me to this village.

View File

@ -5,11 +5,18 @@ date: 2012-08-26 21:07
comments: true
categories:
---
<div class="authorline">
By Anonymous
</div>
“An educated person is one who has learned that information almost always turns out to be at best incomplete and very often false, misleading, fictitious, mendacious - just dead wrong. “
Russel
B.Tech in Pulp and Paper Engineering, the brochure reads. Placements have been good in this field in the recent years. And as a small aside- the course is run in Saharanpur Campus, 50 km from Roorkee. The descriptions of Polymer Science and Technology and Process Engineering with MBA, run along the same lines.
<!--more-->
Every year, groups of students who clear the JEE, but only just,grab this course along their only path to become an IITian. Sacrificing the chance to learn their favorite courses at rather less reputed institutions, they put all their faith in the hallowed name of IIT, sometimes leaving their homes thousands of kilometers behind. Alas! Fate is cruel to them- they get a rude shock soon after arriving to take their place in the halls of their dreams. Nothing in their worst nightmares could have prepared them for the mental distress which plagues everyone in this institute. Isolated from their classmates, unrecognized as IITians even by the shopkeepers nearby, they are soon struck by the realization that this was certainly not what they signed up for, and definitely not what they deserved.
Soon plagued by the contagious depression that infects this campus,they start feeling imprisoned.

View File

@ -5,6 +5,9 @@ date: 2012-10-15 16:29
comments: true
categories:
---
<div class="authorline">
By Ali Yawar, III Year, Mech
</div>
<em>“Hah! I am a thorn in His heart, Gabriel, always with Him. You go on, chant His name in vain, He thinks of me more than He ever will of you”.</em>

View File

@ -1,61 +0,0 @@
---
layout: post
title: "Beauty Within The Beast"
date: 2012-10-25 21:53
comments: true
categories:
---
<b>Heb 13:2-“ Be not forgetful to entertain strangers, for thereby some have entertained angels unawares.”
</b>
On a little hillock, beside a lively stream, overlooking a brightly-colored congregation of wooden cottages stood our large, proud, rose-colored bungalow. With gates as high as the heavens, the intimidating structure, over the years, had done well to keep uninvited visitors away. It was the fall of 2003 in Shillong, and like every fall, the skies had gotten greyer and gloomier, the winds had gotten stronger and chillier, and the trees had gotten barer and browner.
<br/>
Every evening, from five to seven pm, Mum would entertain poor patients, and treat them for free in her little office attached to the house. Sometimes, I would peep through the window to see her patiently attending to all these terrible looking and withered people. I often wondered how she put up with all their exaggerated wincing.
<br/>
“Must be a very depressing job to do” I used to think to myself. Perhaps, it was this thought that sub-consciously influenced me against taking up this profession.
<br/>
One chilly October evening, as Mum was fixing supper, there was a sharp knock at the door. I opened it to see a truly awful looking man, “Why hes hardly as tall as me” I thought as I stared at his stooped shriveled body. I had seen many a woeful looking patients but none as appalling as this; his face, disfigured from swelling, his skin, rumpled and raw, his weak hands, pale and shivering.
<br/>
“Good evening, Is Doctor Memsahib at home? Ive come to get some treatment.” His voice was pleasant.
Mum was visibly tired that day, and it was already half past nine, so, I lied.
<br/>
“Doctor Memsahib is sleeping, Could you please come back tomorrow at five? I will tell her your name.”
“I come from a village very far away; I took the bus this morning that unfortunately got delayed, I have been hunting for a room, but no one seems willing to offer me one. I guess its because of the way I look. Could you spare me a place to sleep for just one night; I will go back after treatment tomorrow.”
“Please wait, Ill call Memsahib.”
<br/>
Mum hesitated for a bit, then looking at his condition said, “Well get you a bed, but, you will have to sleep on the porch. Ill treat you after supper; you can go back in the morning.”
<br/>
I was understandably piqued by this unnecessary act of benevolence.
<br/>
“You should take care of yourself too, you know.” I said to Mum.
<br/>
After Mum had finished her treatment, I went out to speak with him for a few minutes. It didn't take me long to realize that this old man had an over-sized heart crowded into that tiny crippled body. He told me he was a farmer, and worked to support his widowed daughter, her four children, and his wife. He didn't say this by way of complaint. In fact, every other sentence was prefixed with a thanks to God for a blessing. He was grateful to my mother for having given him treatment; he thanked God for giving him the strength and to keep him going to support his family.
<br/>
When we got up in the morning, the bed-sheets were neatly folded and he was out on the porch. Just as he we leaving for the bus, benignantly, as if asking a favor, he said “Could I come back and stay the next time? I wont put you out a bit; Ill sleep on the chair.”
<br/>
He paused a moment and then added, “Your son made me feel at home. Grownups are bothered by my appearance, but children don't seem to mind."
<br/>
Mum said he was welcome again.
<br/>
Over time, the tiny old man grew fond of me. Every time he came, he brought for us a basket of the most wonderful strawberries and peaches we had ever seen or tasted. During the following months, there was never a time that he did not bring strawberries and peaches. Knowing how little money he made, his gifts were doubly precious. He once told me of little white rabbits that he had in his farm, and I asked him to get one for me.
<br/>
Unexpectedly, my father received his transfer orders to another place and we were to vacate the house in two weeks. We were sure of meeting him at least once before leaving, but, he never came. Mum informed the neighbours and left a note with them containing our new address and telephone number, hoping he would call. He never did.
<br/>
Mum and I never forgot about him and we will always be grateful to have known him. “From Him”, Mum said, “We learned to accept the bad without complaint and the good with gratitude to God.”
<br/>
Ten years hence, there was knock on our door. I opened it to find a young lady carrying a little white rabbit in a wooden basket. There was a note attached to the basket.
<br/>
“I apologize for not being able to meet you before you left. Here is the rabbit you asked for. I shall always be grateful for all the help I received from you.”
<br/>
The same day, Mum and I were sauntering about in our new garden. As she showed me the flowers, we came to the most beautiful one of all, a golden chrysanthemum, bursting with blooms. But to my great surprise, it was growing in an old dented, rusty bucket.
<br/>
“Shouldn't you put this in a better pot?”
<br/>
"I ran short of pots," Mum explained," and knowing how beautiful this one would be, I thought it wouldn't mind starting out in this old pail. It's just for a little while, until I can put it out in the garden."
<br/>
Mum and I laughed delightedly.
<br/>
"Here's an especially beautiful one," God might have said when he came to the soul of the sweet old farmer. "He won't mind starting in this small body."
<br/>
<br/>
<em><b>Varun Rao, IV Year, P&I</b></em>

View File

@ -5,10 +5,16 @@ date: 2012-10-25 17:13
comments: true
categories:
---
<div class="authorline">
By Nisha C, III Year, Mech
</div>
Perusing the notice boards in the departments and the hostels is a useful habit well-cultivated by many on campus, perhaps on seniors' insistence and their own observations regarding the importance of the information that the notice boards usually carry. I am not a perfectly regular notice board-reader but I was standing there, nevertheless, scanning long sheets of shabbily clipped paper, for something significant. A breach of the code of conduct here, a hijacking of disciplinary marks there, a warning for participation in a hunger strike here and a suspension order for misconduct there.<br />
<br />
<!--more-->
I checked again to see if it was true that there was nothing else the department wanted me know at that moment. My doubts had been well-reasoned after all. There was going to be a conference on advances in friction welding. Exciting, surely. I mean, I remembered how heroic I had felt donning that threadbare apron which I was sure was older than I was, those sooted gloves that would have been an unmistakable fit for Mr.<a href="http://en.wikipedia.org/wiki/Sultan_K%C3%B6sen" target="_blank">Sultan Kosen</a> if manual welding ever struck his fancy, and going bzzzzz...over Cast Iron to make a butt joint. If I had had more confidence in the safety of the dingy advanced welding(which is more accurate and automatic) lab, I would have easily slept through the practical or something. Naturally, I was just thinking about the other notices and this one just made want to distort the whole notice board, with the welding torch, if possible.<br />
<br />
We used to have <a href="http://chennai.burrp.com/listing/mcrennett-bakery_gopalapuram_chennai_bakery-shops-dessert-shops/1945021415" target="_blank">McRennett </a>opposite our school. For the most ridiculous of reasons, the school administration decided that we should pass up a chance to have the most delicious cakes in the world(it's been years since I had my last, but, believe me the taste lingers) after school hours. We weren't allowed to go. Of course, when rules become cold, they can be forgotten and indifference to them can be forgiven. Everyone started frequenting the bakery again but I wouldn't go for a while. My excuse was always the same. I would say that I am not one for answering uncomfortable questions if worse came to worst and some teacher chastised me. For the record, that never happened. My school had a set of unbelievably kind teachers. Despite being busy with churning out maximum marks in the board exam, my school did give each one of its pupils pleasant memories to cherish.<br />

View File

@ -5,12 +5,19 @@ date: 2012-11-13 12:38
comments: true
categories:
---
<div class="authorline">
By Abhay Rana, IV Year, P&amp;I
</div>
<b>Disclaimer:</b> The views are the author's alone. The reader is advised to adopt an open mind.
When I came to IIT-Roorkee, I was an agnostic-turning-to-atheism, hoping that I would be guided the right way. However, meeting so many people with so many different views to life made me move away from religion, if anything. The more I tried to understand faith, the more it got away.
India, as a rich and diverse country, has its own share of religions, superstitions, and weird laws that come with these religions. For instance, changing your religion is illegal in several states, while some others may require you to give a one month notice or else face fines. India is one of the few secular countries which governs several laws based on religion. We have different marriage laws for different religions.
<!--more-->
Are you worried about politics in India mixing with religion? Im worried about the lack of atheist support in India. Our most recent census does not include a section for atheists, and assumes all Indians are believers. At the same time, we have many of our politicians swearing oaths as atheists. Our first Prime Minister was openly an atheist, and having another such is unthinkable at times like these. Recently, a pic doing the rounds on the internet argued that the theoretical taxing of religious organizations in the US would lead to enough budget($71 billion/year) for NASA to send 28 Curiosity rovers per year, forever to Mars. Taking on a similar hypothetical question I wondered: “How much could India benefit, if India suddenly embraced atheism”. As it turns out, the answer is a lot.
Keeping economics in track, we might see a shift from religious donations(which are the majority of donations in India) to charity being given to other NGOs and such. Tirupati, Shirdi Baba, and the top 10 temples of the state earn a huge sum every year, which is non-taxable at the moment. Some of it might even trickle down to help our economy.

View File

@ -6,10 +6,15 @@ comments: true
categories: societal
published: false
---
<div class="authorline">
By Nisha Chandramoorthy, III Year, Mech
</div>
Speaking in cliches is an easy thing to do. Sometimes, you let slip a few words that are supposed to be spoken in particular circumstances like a programmed machine. You trust they are appropriate and don't stop to ponder about what they truly mean. It is a call for action, they say, or May her death not go in vain. In a moment of hatred, of protest and rebellion, you, inconsiderate reader, start to accuse everyone; your blood curdles on hearing cliches. You despise the random bloke who made sexist remarks, it galls you to think of Prime Ministers who gaffed inadvertently while addressing nations, of grey-haired Chief Ministers who make speeches that count for naught. In the heat of rage, you, thoughtless reader, turn misanthropic and ruthless in your criticisms.
<!--more-->
God forbid, had the tiniest part of the unfortunate event that occurred in the moving bus in New Delhi two weeks ago happened to me - I am sorry I can't finish this sentence because I don't have the courage to even think of the possibility. Yes, unkind reader, it is of fear that I speak. Abashedly huge fear, nothing poetic and great about it. Not of darkness, but of the people who are its whelp. They have a heart black as coal, they don't feel the slightest prickle on their skin when they hurt another and they have enormous physical strength. Much greater than my own.
As I write this, I realize that you are all I have, blog. I am not able to organize my thoughts into 10 bullet points in which I explain "What are the steps to be taken to make Delhi safe for women?" on Quora. But, folks there have covered everything. They write beautifully, boldly and thoroughly. They give complete answers and shout out their opinions from a pedestal. Much like the protesters out in the streets who demand that justice be got. Again, brave folks who struggle to push a car that doesn't seem to start. They propel it forward with all their strength hoping it will get to ignition with a jolt. You, dear blog, don't rise in response as I bore you with a quagmire of thoughts and mostly impulsive ones interspersed with humorless jokes and everyday trivialities. You lie here on the internet like a cold cadaver, filled with odd words that have no fight in them. The words that I feed you which have no direction and strangely, are meant for no one. You reek of me, speak excessively of me and you don't complain that I am a nobody myself.

View File

@ -6,12 +6,19 @@ comments: true
categories: literary
---
<div class="authorline">
By Jayant Jain, II Year, Mech
</div>
<em>I was staring out the window, distracted from the unenviable task of dimensioning a long-forgotten machine. As I stared at a shadow moving along the ground (yes, that's how unenviable my task was), I noticed the shadows that had been previously hidden, being revealed by its motion. That's when I realized how most shadows stayed hidden and unnoticed within all the other shadows.
</em>
<em>
And that's when my eternally crazy, philosophy-tinted mind made a rather far-fetched link to my own ignorance, and my ignorance of my own ignorance. The madman within me screamed at me to express the revelation. I quelled the insanity.
He ultimately won, though.
</em>
<!--more-->
<p>
A city of blissful mortals and mournful souls<br/>
Within weary walls, and the winter cold.<br/>
@ -51,6 +58,4 @@ Will lightning strike?<br/>
Or will nighttime fall?<br/>
</p>
<em>Jayant Jain</em>
<em>II Year, Mech</em>

View File

@ -1,8 +1,18 @@
---
layout: default
title: Blog Archives
layout: page
title: Blog Archive
footer: false
---
<div id="blog-archives">
{% for post in site.posts reverse %}
{% include archive_post.html %}
{% endfor %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% unless year == this_year %}
{% assign year = this_year %}
<h2>{{ year }}</h2>
{% endunless %}
<article>
{% include archive_post.html %}
</article>
{% endfor %}
</div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 835 KiB

After

Width:  |  Height:  |  Size: 400 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 445 B

View File

@ -2,17 +2,28 @@
layout: default
---
{% assign index = true %}
{% for post in paginator.posts %}
{% assign content = post.content %}
<article class="post">{% include article.html %}</article>
{% endfor %}
<nav id="pagenavi">
{% if paginator.previous_page %}
<a href="{{paginator.previous_page}}" class="prev">Prev</a>
{% endif %}
<div class="blog-index">
{% assign index = true %}
{% for post in paginator.posts %}
{% assign content = post.content %}
<article>
{% include article.html %}
</article>
{% endfor %}
<div class="pagination">
{% if paginator.next_page %}
<a href="{{paginator.next_page}}" class="next">Next</a>
<a class="prev" href="{{paginator.next_page}}">&larr; Older</a>
{% endif %}
<div class="center"><a href="{{ root_url }}/blog/archives">Blog Archives</a></div>
</nav>
<a href="/blog/archives">Blog Archives</a>
{% if paginator.previous_page %}
<a class="next" href="{{paginator.previous_page}}">Newer &rarr;</a>
{% endif %}
</div>
</div>
<aside class="sidebar">
{% if site.blog_index_asides.size %}
{% include_array blog_index_asides %}
{% else %}
{% include_array default_asides %}
{% endif %}
</aside>

View File

@ -1,33 +1,28 @@
var github = (function(){
function escapeHtml(str) {
return $('<div/>').text(str).html();
}
function render(target, repos){
var i = 0, fragment = '', t = $(target)[0];
for(i = 0; i < repos.length; i++) {
fragment += '<li><a href="'+repos[i].url+'">'+repos[i].name+'</a><p>'+repos[i].description+'</p></li>';
fragment += '<li><a href="'+repos[i].html_url+'">'+repos[i].name+'</a><p>'+escapeHtml(repos[i].description||'')+'</p></li>';
}
t.innerHTML = fragment;
}
return {
showRepos: function(options){
$.ajax({
url: "http://github.com/api/v2/json/repos/show/"+options.user+"?callback=?"
, type: 'jsonp'
url: "https://api.github.com/users/"+options.user+"/repos?sort=pushed&callback=?"
, dataType: 'jsonp'
, error: function (err) { $(options.target + ' li.loading').addClass('error').text("Error loading feed"); }
, success: function(data) {
var repos = [];
if (!data || !data.repositories) { return; }
for (var i = 0; i < data.repositories.length; i++) {
if (options.skip_forks && data.repositories[i].fork) { continue; }
repos.push(data.repositories[i]);
if (!data || !data.data) { return; }
for (var i = 0; i < data.data.length; i++) {
if (options.skip_forks && data.data[i].fork) { continue; }
repos.push(data.data[i]);
}
repos.sort(function(a, b) {
var aDate = new Date(a.pushed_at).valueOf(),
bDate = new Date(b.pushed_at).valueOf();
if (aDate === bDate) { return 0; }
return aDate > bDate ? -1 : 1;
});
if (options.count) { repos.splice(options.count); }
render(options.target, repos);
}

5
source/javascripts/libs/jquery.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
var MD5=function(e){function t(e,t){return e<<t|e>>>32-t}function n(e,t){var n,r,i,s,o;i=e&2147483648;s=t&2147483648;n=e&1073741824;r=t&1073741824;o=(e&1073741823)+(t&1073741823);if(n&r){return o^2147483648^i^s}if(n|r){if(o&1073741824){return o^3221225472^i^s}else{return o^1073741824^i^s}}else{return o^i^s}}function r(e,t,n){return e&t|~e&n}function i(e,t,n){return e&n|t&~n}function s(e,t,n){return e^t^n}function o(e,t,n){return t^(e|~n)}function u(e,i,s,o,u,a,f){e=n(e,n(n(r(i,s,o),u),f));return n(t(e,a),i)}function a(e,r,s,o,u,a,f){e=n(e,n(n(i(r,s,o),u),f));return n(t(e,a),r)}function f(e,r,i,o,u,a,f){e=n(e,n(n(s(r,i,o),u),f));return n(t(e,a),r)}function l(e,r,i,s,u,a,f){e=n(e,n(n(o(r,i,s),u),f));return n(t(e,a),r)}function c(e){var t;var n=e.length;var r=n+8;var i=(r-r%64)/64;var s=(i+1)*16;var o=Array(s-1);var u=0;var a=0;while(a<n){t=(a-a%4)/4;u=a%4*8;o[t]=o[t]|e.charCodeAt(a)<<u;a++}t=(a-a%4)/4;u=a%4*8;o[t]=o[t]|128<<u;o[s-2]=n<<3;o[s-1]=n>>>29;return o}function h(e){var t="",n="",r,i;for(i=0;i<=3;i++){r=e>>>i*8&255;n="0"+r.toString(16);t=t+n.substr(n.length-2,2)}return t}function p(e){e=e.replace(/\r\n/g,"\n");var t="";for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<128){t+=String.fromCharCode(r)}else if(r>127&&r<2048){t+=String.fromCharCode(r>>6|192);t+=String.fromCharCode(r&63|128)}else{t+=String.fromCharCode(r>>12|224);t+=String.fromCharCode(r>>6&63|128);t+=String.fromCharCode(r&63|128)}}return t}var d=Array();var v,m,g,y,b,w,E,S,x;var T=7,N=12,C=17,k=22;var L=5,A=9,O=14,M=20;var _=4,D=11,P=16,H=23;var B=6,j=10,F=15,I=21;e=p(e);d=c(e);w=1732584193;E=4023233417;S=2562383102;x=271733878;for(v=0;v<d.length;v+=16){m=w;g=E;y=S;b=x;w=u(w,E,S,x,d[v+0],T,3614090360);x=u(x,w,E,S,d[v+1],N,3905402710);S=u(S,x,w,E,d[v+2],C,606105819);E=u(E,S,x,w,d[v+3],k,3250441966);w=u(w,E,S,x,d[v+4],T,4118548399);x=u(x,w,E,S,d[v+5],N,1200080426);S=u(S,x,w,E,d[v+6],C,2821735955);E=u(E,S,x,w,d[v+7],k,4249261313);w=u(w,E,S,x,d[v+8],T,1770035416);x=u(x,w,E,S,d[v+9],N,2336552879);S=u(S,x,w,E,d[v+10],C,4294925233);E=u(E,S,x,w,d[v+11],k,2304563134);w=u(w,E,S,x,d[v+12],T,1804603682);x=u(x,w,E,S,d[v+13],N,4254626195);S=u(S,x,w,E,d[v+14],C,2792965006);E=u(E,S,x,w,d[v+15],k,1236535329);w=a(w,E,S,x,d[v+1],L,4129170786);x=a(x,w,E,S,d[v+6],A,3225465664);S=a(S,x,w,E,d[v+11],O,643717713);E=a(E,S,x,w,d[v+0],M,3921069994);w=a(w,E,S,x,d[v+5],L,3593408605);x=a(x,w,E,S,d[v+10],A,38016083);S=a(S,x,w,E,d[v+15],O,3634488961);E=a(E,S,x,w,d[v+4],M,3889429448);w=a(w,E,S,x,d[v+9],L,568446438);x=a(x,w,E,S,d[v+14],A,3275163606);S=a(S,x,w,E,d[v+3],O,4107603335);E=a(E,S,x,w,d[v+8],M,1163531501);w=a(w,E,S,x,d[v+13],L,2850285829);x=a(x,w,E,S,d[v+2],A,4243563512);S=a(S,x,w,E,d[v+7],O,1735328473);E=a(E,S,x,w,d[v+12],M,2368359562);w=f(w,E,S,x,d[v+5],_,4294588738);x=f(x,w,E,S,d[v+8],D,2272392833);S=f(S,x,w,E,d[v+11],P,1839030562);E=f(E,S,x,w,d[v+14],H,4259657740);w=f(w,E,S,x,d[v+1],_,2763975236);x=f(x,w,E,S,d[v+4],D,1272893353);S=f(S,x,w,E,d[v+7],P,4139469664);E=f(E,S,x,w,d[v+10],H,3200236656);w=f(w,E,S,x,d[v+13],_,681279174);x=f(x,w,E,S,d[v+0],D,3936430074);S=f(S,x,w,E,d[v+3],P,3572445317);E=f(E,S,x,w,d[v+6],H,76029189);w=f(w,E,S,x,d[v+9],_,3654602809);x=f(x,w,E,S,d[v+12],D,3873151461);S=f(S,x,w,E,d[v+15],P,530742520);E=f(E,S,x,w,d[v+2],H,3299628645);w=l(w,E,S,x,d[v+0],B,4096336452);x=l(x,w,E,S,d[v+7],j,1126891415);S=l(S,x,w,E,d[v+14],F,2878612391);E=l(E,S,x,w,d[v+5],I,4237533241);w=l(w,E,S,x,d[v+12],B,1700485571);x=l(x,w,E,S,d[v+3],j,2399980690);S=l(S,x,w,E,d[v+10],F,4293915773);E=l(E,S,x,w,d[v+1],I,2240044497);w=l(w,E,S,x,d[v+8],B,1873313359);x=l(x,w,E,S,d[v+15],j,4264355552);S=l(S,x,w,E,d[v+6],F,2734768916);E=l(E,S,x,w,d[v+13],I,1309151649);w=l(w,E,S,x,d[v+4],B,4149444226);x=l(x,w,E,S,d[v+11],j,3174756917);S=l(S,x,w,E,d[v+2],F,718787259);E=l(E,S,x,w,d[v+9],I,3951481745);w=n(w,m);E=n(E,g);S=n(S,y);x=n(x,b)}var q=h(w)+h(E)+h(S)+h(x);return q.toLowerCase()}

File diff suppressed because one or more lines are too long

View File

@ -2,15 +2,16 @@ function getNav() {
var mobileNav = $('nav[role=navigation] fieldset[role=search]').after('<fieldset class="mobile-nav"></fieldset>').next().append('<select></select>');
mobileNav.children('select').append('<option value="">Navigate&hellip;</option>');
$('ul[role=main-navigation]').addClass('main-navigation');
$('ul.main-navigation a').each(function(link) {
$('ul.main-navigation a').each(function(i, link) {
mobileNav.children('select').append('<option value="'+link.href+'">&raquo; '+link.text+'</option>');
});
$('ul.subscription a').each(function(link) {
$('ul.subscription a').each(function(i, link) {
mobileNav.children('select').append('<option value="'+link.href+'">&raquo; '+link.text+'</option>');
});
mobileNav.children('select').bind('change', function(event) {
if (event.target.value) { window.location.href = event.target.value; }
});
mobileNav.children('select').val('');
}
function addSidebarToggler() {
@ -40,7 +41,7 @@ function addSidebarToggler() {
function testFeatures() {
var features = ['maskImage'];
$(features).map(function(feature) {
$(features).map(function(i, feature) {
if (Modernizr.testAllProps(feature)) {
$('html').addClass(feature);
} else {
@ -76,7 +77,7 @@ function flashVideoFallback(){
$('video').each(function(video){
video = $(video);
if (!Modernizr.video.h264 && swfobject.getFlashPlayerVersion() || window.location.hash.indexOf("flash-test") !== -1){
video.children('source[src$=mp4]').first().map(function(source){
video.children('source[src$=mp4]').first().map(function(i, source){
var src = $(source).attr('src'),
id = 'video_'+Math.round(1 + Math.random()*(100000)),
width = video.attr('width'),
@ -116,7 +117,7 @@ function renderDeliciousLinks(items) {
$('#delicious').html(output);
}
$.domReady(function() {
$('document').ready(function() {
testFeatures();
wrapFlashVideos();
flashVideoFallback();
@ -159,3 +160,4 @@ b=j.userAgent.toLowerCase(),d=j.platform.toLowerCase(),g=d?/win/.test(d):/win/.t
a&&b&&d&&i&&k){d+="";i+="";var p={};if(f&&typeof f===o)for(var m in f)p[m]=f[m];p.data=a;p.width=d;p.height=i;a={};if(c&&typeof c===o)for(var n in c)a[n]=c[n];if(e&&typeof e===o)for(var r in e)typeof a.flashvars!=l?a.flashvars+="&"+r+"="+e[r]:a.flashvars=r+"="+e[r];if(t(k))b=s(p,a,b),j.success=!0,j.ref=b}h&&h(j)},ua:g,getFlashPlayerVersion:function(){return{major:g.pv[0],minor:g.pv[1],release:g.pv[2]}},hasFlashPlayerVersion:t,createSWF:function(a,b,d){if(g.w3)return s(a,b,d)},getQueryParamValue:function(a){var b=
i.location.search||i.location.hash;if(b){/\?/.test(b)&&(b=b.split("?")[1]);if(a==null)return u(b);for(var b=b.split("&"),d=0;d<b.length;d++)if(b[d].substring(0,b[d].indexOf("="))==a)return u(b[d].substring(b[d].indexOf("=")+1))}return""}}}();

View File

@ -44,7 +44,7 @@ function Pinboard_Linkroll() {
if (it.t.length > 0) {
for (var i = 0; i < it.t.length; i++) {
var tag = it.t[i];
str += " <a class=\"pin-tag\" href=\"http://pinboard.in/u:"+ this.cook(it.a) + "/t:" + this.cook(tag) + "\">" + this.cook(tag).replace(/^\s+|\s+$/g, '') + "</a> ";
str += " <a class=\"pin-tag\" href=\"https://pinboard.in/u:"+ this.cook(it.a) + "/t:" + this.cook(tag) + "\">" + this.cook(tag).replace(/^\s+|\s+$/g, '') + "</a> ";
}
}
str += "</p></li>\n";
@ -52,5 +52,5 @@ function Pinboard_Linkroll() {
}
}
Pinboard_Linkroll.prototype = new Pinboard_Linkroll();
pinboardNS_fetch_script("http://feeds.pinboard.in/json/v1/u:"+pinboard_user+"/?cb=pinboardNS_show_bmarks\&count="+pinboard_count);
pinboardNS_fetch_script("https://feeds.pinboard.in/json/v1/u:"+pinboard_user+"/?cb=pinboardNS_show_bmarks\&count="+pinboard_count);

View File

@ -1,92 +1,78 @@
(function($){
$.fn.getTwitterFeed = function(userid, count, reply){
var banner = $(this),
feed = banner.find('.feed'),
interval = 10000,
speed = 500;
// JSON-P Twitter fetcher for Octopress
// (c) Brandon Mathis // MIT License
var linkify = function(text){
text = text.replace(/(https?:\/\/)([\w\-:;?&=+.%#\/]+)/gi, '<a href="$1$2">$2</a>').replace(/(^|\W)@(\w+)/g, '$1<a href="http://twitter.com/$2">@$2</a>').replace(/(^|\W)#(\w+)/g, '$1<a href="http://search.twitter.com/search?q=%23$2">#$2</a>');
/* Sky Slavin, Ludopoli. MIT license. * based on JavaScript Pretty Date * Copyright (c) 2008 John Resig (jquery.com) * Licensed under the MIT license. */
function prettyDate(time) {
if (navigator.appName === 'Microsoft Internet Explorer') {
return "<span>&infin;</span>"; // because IE date parsing isn't fun.
}
var say = {
just_now: " now",
minute_ago: "1m",
minutes_ago: "m",
hour_ago: "1h",
hours_ago: "h",
yesterday: "1d",
days_ago: "d",
last_week: "1w",
weeks_ago: "w"
};
return text;
}
var current_date = new Date(),
current_date_time = current_date.getTime(),
current_date_full = current_date_time + (1 * 60000),
date = new Date(time),
diff = ((current_date_full - date.getTime()) / 1000),
day_diff = Math.floor(diff / 86400);
var relativeDate = function(date){
if (navigator.appName === 'Microsoft Internet Explorer') return '';
if (isNaN(day_diff) || day_diff < 0) { return "<span>&infin;</span>"; }
var unit = {
now: 'Now',
minute: '1 min',
minutes: ' mins',
hour: '1 hr',
hours: ' hrs',
day: 'Yesterday',
days: ' days',
week: '1 week',
weeks: ' weeks'
};
return day_diff === 0 && (
diff < 60 && say.just_now ||
diff < 120 && say.minute_ago ||
diff < 3600 && Math.floor(diff / 60) + say.minutes_ago ||
diff < 7200 && say.hour_ago ||
diff < 86400 && Math.floor(diff / 3600) + say.hours_ago) ||
day_diff === 1 && say.yesterday ||
day_diff < 7 && day_diff + say.days_ago ||
day_diff === 7 && say.last_week ||
day_diff > 7 && Math.ceil(day_diff / 7) + say.weeks_ago;
}
var current = new Date(),
tweet = new Date(date),
diff = (((current.getTime() + (1 * 60000)) - tweet.getTime()) / 1000),
day_diff = Math.floor(diff / 86400);
if (day_diff == 0){
if (diff < 60) return unit.now;
else if (diff < 120) return unit.minute;
else if (diff < 3600) return Math.floor(diff / 60) + unit.minutes;
else if (diff < 7200) return unit.hour;
else if (diff < 86400) return Math.floor(diff / 3600) + unit.hours;
else return '';
} else if (day_diff == 1) {
return unit.day;
} else if (day_diff < 7) {
return day_diff + unit.days;
} else if (day_diff == 7) {
return unit.week;
} else if (day_diff > 7) {
return Math.ceil(day_diff / 7) + unit.weeks;
} else {
return '';
}
}
function linkifyTweet(text, url) {
// Linkify urls, usernames, hashtags
text = text.replace(/(https?:\/\/)([\w\-:;?&=+.%#\/]+)/gi, '<a href="$1$2">$2</a>')
.replace(/(^|\W)@(\w+)/g, '$1<a href="https://twitter.com/$2">@$2</a>')
.replace(/(^|\W)#(\w+)/g, '$1<a href="https://search.twitter.com/search?q=%23$2">#$2</a>');
if ($(window).width() > 600){
var url = 'https://api.twitter.com/1/statuses/user_timeline/'+userid+'.json?count='+count+'&exclude_replies='+(reply ? '0' : '1')+'&trim_user=true&callback=?';
banner.show();
$.getJSON(url, function(json){
var length = json.length,
fragment = document.createDocumentFragment(),
counts = 0,
timeout;
// Use twitter's api to replace t.co shortened urls with expanded ones.
for (var u in url) {
if(url[u].expanded_url != null){
var shortUrl = new RegExp(url[u].url, 'g');
text = text.replace(shortUrl, url[u].expanded_url);
var shortUrl = new RegExp(">"+(url[u].url.replace(/https?:\/\//, '')), 'g');
text = text.replace(shortUrl, ">"+url[u].display_url);
}
}
return text
}
for (var i=0; i<length; i++){
var item = document.createElement('li');
item.innerHTML = linkify(json[i].text) + '<small>'+relativeDate(json[i].created_at)+'</small>';
fragment.appendChild(item);
}
function showTwitterFeed(tweets, twitter_user) {
var timeline = document.getElementById('tweets'),
content = '';
var play = function(){
timeout = setTimeout(function(){
feed.animate({top: '-='+30}, speed, function(){
$(this).append($(this).children().eq(counts).clone());
counts++;
play();
});
}, interval);
}
for (var t in tweets) {
content += '<li>'+'<p>'+'<a href="https://twitter.com/'+twitter_user+'/status/'+tweets[t].id_str+'">'+prettyDate(tweets[t].created_at)+'</a>'+linkifyTweet(tweets[t].text.replace(/\n/g, '<br>'), tweets[t].entities.urls)+'</p>'+'</li>';
}
timeline.innerHTML = content;
}
var pause = function(){
clearTimeout(timeout);
}
banner.on('mouseenter', pause).on('mouseleave', play)
.children('.loading').hide().end()
.children('.container').show()
.children('.feed').append(fragment);
play();
});
}
};
})(jQuery);
function getTwitterFeed(user, count, replies) {
count = parseInt(count, 10);
$.ajax({
url: "https://api.twitter.com/1/statuses/user_timeline/" + user + ".json?trim_user=true&count=" + (count + 20) + "&include_entities=1&exclude_replies=" + (replies ? "0" : "1") + "&callback=?"
, type: 'jsonp'
, error: function (err) { $('#tweets li.loading').addClass('error').text("Twitter's busted"); }
, success: function(data) { showTwitterFeed(data.slice(0, count), user); }
})
}

7
source/robots.txt Normal file
View File

@ -0,0 +1,7 @@
---
layout: nil
---
User-agent: *
Disallow:
Sitemap: {{ site.url }}/sitemap.xml