Skip to content

Instantly share code, notes, and snippets.

View Mark24Code's full-sized avatar
💻
Exploring

Mark24 Mark24Code

💻
Exploring
View GitHub Profile
@Mark24Code
Mark24Code / git
Created April 27, 2017 07:59
git command
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
@Mark24Code
Mark24Code / complexity_graph.py
Last active April 26, 2017 06:30
绘制时间复杂度范围
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)
@Mark24Code
Mark24Code / gulpfile.js
Last active September 13, 2017 15:21
Gulp
/*******************
* Author: Mark24
* Mail: [email protected]
* Github: Mark24Code
* Date: 2017/08/01
*******************/
/*******************
* Gulp依赖
*******************/
@Mark24Code
Mark24Code / setting
Last active April 24, 2017 06:43
Sublime_Config
{
"show_encoding": true,
"bold_folder_labels": true,
"draw_white_space": "all",
"file_exclude_patterns":
[
],
"folder_exclude_patterns":
[
"node_modules"
<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;
@Mark24Code
Mark24Code / nginx_gunicorn.conf
Last active March 23, 2017 14:45
Nginx Conf 4 Gunicorn
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
@Mark24Code
Mark24Code / Hello.vue
Created March 16, 2017 08:25
使用vuex
<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>
@Mark24Code
Mark24Code / xterm256color
Last active February 21, 2017 12:02
让终端切换到256色(make terminal/xterm to support 256 color)
# add to .bashrc
# source .bashrc
if [ "$TERM" == "xterm" ]; then
export TERM=xterm-256color
fi
@Mark24Code
Mark24Code / xterm256
Created February 21, 2017 12:00
让中端切换到256色(make terminal/xterm to support 256 color)
# add to .bashrc
# source .bashrc
if [ "$TERM" == "xterm" ]; then
export TERM=xterm-256color
fi
@Mark24Code
Mark24Code / app.py
Created February 16, 2017 12:16 — forked from zaccrites/app.py
Flask Application Factory
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()