If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"
npm adduser
alias codeStat="git log --author=\"Yoochan Seo\" --pretty=tformat: --numstat | \ | |
awk '{ add += \$1 ; subs += \$2 ; loc += \$1 - \$2 } END \ | |
{ printf \"added lines: %s removed lines: %s total lines: %s\n\",add,subs,loc }'" | |
BEGINCOMMENT | |
written by Yoochan Seo. | |
ENDCOMMENT |
import React, { PropTypes } from 'react'; | |
import { connect } from 'react-redux'; | |
const Authenticated = React.createClass({ | |
propTypes: { | |
children: PropTypes.element.isRequired, | |
isAuthenticated: PropTypes.bool.isRequired, | |
history: PropTypes.object.isRequired, | |
}, | |
componentDidMount() { |
# Example nginx + git HTTP Smart mode (git-http-backend) + HTTP Authentication + HTTPS redirect | |
# jeroen@massar.ch - http://jeroen.massar.ch | |
server { | |
listen 192.0.1.1:80; | |
listen [2001:db8::1]:80; | |
# Redirect all non-HTTPS traffic to the HTTPS variant | |
return 301 https://$host$request_uri; | |
} |
.container | |
{ | |
position: absolute; | |
width:40%; | |
margin: 0 auto; | |
left: 0; | |
right: 0; | |
} | |
// set left, right to 0 and specify width! |
<div class="container"> | |
<div class="center_div"> | |
</div> | |
</div> | |
.container{ | |
float: left; |
<!-- We want to center our <ul> into the container REGARDLESS of the number of <li> inside our <ul> --> | |
<h1 id="title">How to center floating elements</h1> | |
<p id="subtitle">Without setting a width <b>&</b> Regardless of the number of children</p> | |
<section id="container"> | |
<div class="float_center"> | |
<ul class="child"> | |
<li><a href="#">link 1</a></li> | |
<li><a href="#">link 2</a></li> |
<div class="Modal-Background toggle-Modal"> | |
<div class="Center-Block Absolute-Center is-Fixed is-Variable Modal" id="Fixed-Modal"> | |
<div class="Center-Content"> | |
<h4 class="Title">Absolute Center.</h4> | |
<p>This box is absolutely centered within the viewport, horizontally and vertically, using only CSS.</p> | |
<p><a href="#" class="Shaw-Button trigger-Resize">Resize Me!</a></p> | |
<p><a href="#" class="Shaw-Button toggle-Modal">Close Modal</a></p> |
define(["marionette", "backbone", "templates/templates"], function(Marionette, Backbone, templates){ | |
var value; | |
var field; | |
var alert_label; | |
var url = "http://api.localhost.dev:3000/v1"; | |
//var url = "http://api.bitsnut.com/v1"; | |
var Model = Backbone.Model.extend({ | |
defaults: { |