This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git remote add <remote_name> https://github.com/ss/ss.git | |
git fetch <remote_name> | |
git branch <local_branch> | |
git merge <remote_name>/master --allow-unrelated-histories |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.font_manager as fm | |
import numpy as np | |
import matplotlib.pyplot as plt | |
myfont = fm.FontProperties(fname='/Library/Fonts/Microsoft/Microsoft Yahei.ttf') | |
x = np.linspace(0,2,50) | |
y1 = x | |
y2 = np.log(x) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************* | |
* Author: Mark24 | |
* Mail: [email protected] | |
* Github: Mark24Code | |
* Date: 2017/08/01 | |
*******************/ | |
/******************* | |
* Gulp依赖 | |
*******************/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"show_encoding": true, | |
"bold_folder_labels": true, | |
"draw_white_space": "all", | |
"file_exclude_patterns": | |
[ | |
], | |
"folder_exclude_patterns": | |
[ | |
"node_modules" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>flying_layout</title> | |
<style type="text/css"> | |
body { | |
min-width: 600px; /* 2*left + right */ | |
margin:0; | |
padding: 0; | |
} | |
.main-wrapper { | |
float: left; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 1; | |
user mark24 mark24; # <-- | |
# 'user nobody nobody;' for systems with 'nobody' as a group instead | |
pid /tmp/nginx.pid; | |
error_log /tmp/nginx.error.log; | |
events { | |
worker_connections 1024; # increase if you have lots of clients | |
accept_mutex off; # set to 'on' if nginx worker_processes > 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="hello"> | |
<div><p>Hello Components</p></div> | |
<div> | |
{{count}} | |
</div> | |
<div> | |
<button @click="increment">Inc</button> | |
<button @click="decrement">Dec</button> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add to .bashrc | |
# source .bashrc | |
if [ "$TERM" == "xterm" ]; then | |
export TERM=xterm-256color | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add to .bashrc | |
# source .bashrc | |
if [ "$TERM" == "xterm" ]; then | |
export TERM=xterm-256color | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import jinja2 | |
from flask import Flask, render_template, request, redirect, url_for | |
from flask.ext.sqlalchemy import SQLAlchemy | |
from . import formatting | |
from .config import get_config | |
db = SQLAlchemy() |