Skip to content

Instantly share code, notes, and snippets.

View jdomzhang's full-sized avatar

Steven Zhang jdomzhang

View GitHub Profile
<html>
<body>
<h1>Coding Dojo Presentation</h1>
<h2>Agenda</h2>
<ul>
<li>Introduction</li>
<li>Policy</li>
<li>Goal</li>
<li>Demo...</li>
</ul>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TechTalk.SpecFlow;
using Rhino.Mocks;
using Domain;
using NUnit.Framework;
namespace SpecFlowGroup1 {
@one
Feature: SpecFlow Group
In order to reply specflow group
As a group member
I want to answer the discussion
Scenario: Answer discussion
Then I can anwer discussion
using Raven.Database.Indexing;
using Xunit;
using System.Linq;
using System;
namespace Raven.Tests.Bugs.Indexing
{
public class UseMaxForDateTimeTypeInReduce : LocalClientTest
{
private const string map = @"
UPSTART
sudo vi /etc/init/<reponame>.conf
add inside:
description "<reponame>"
author "name"
env PROGRAM_NAME="<reponame>"
@jdomzhang
jdomzhang / index.html
Created January 25, 2018 07:23
Vue 2.0 test
<div id="app">
<app-nav></app-nav>
<app-view>
<app-sidebar></app-sidebar>
<app-content></app-content>
</app-view>
</div>
<div id="app-7">
<ol>
<!--
@jdomzhang
jdomzhang / set gopath on mac
Created April 11, 2018 13:01 — forked from molivier/gist:271bba5d67de1583a8e3
Set $GOPATH on Mac OSX : bash_profile
# Edit ~/.bash_profile
export GOPATH=/Users/username/go
export PATH=$GOPATH/bin:$PATH
# Reload profile : source ~/.bash_profile
{
"vue": {
"prefix": "vue",
"body": [
"<template>",
"",
"</template>",
"",
"<style lang='scss' scoped>",
"",
{
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
"Swagger": {
"scope": "go",
@jdomzhang
jdomzhang / rename.js
Last active February 26, 2019 08:26 — forked from scriptex/rename.js
Rename all files in a folder with NodeJS
const fs = require('fs');
const path = require('path');
const args = process.argv.slice(2);
const dir = args[0];
const match = RegExp(args[1], 'g');
const replace = args[2];
const files = fs.readdirSync(dir);
files
.filter(file => {