Skip to content

Instantly share code, notes, and snippets.

View yingmu52's full-sized avatar
🎯
Focusing

Tony Zhuang yingmu52

🎯
Focusing
  • Microsoft
  • Vancouver, BC
View GitHub Profile
@yingmu52
yingmu52 / SysmonStartup.bat
Created March 2, 2018 23:39 — forked from silentbreaksec/SysmonStartup.bat
Windows batch file to deploy Sysmon using a startup script via GPO
@echo off
:: Author: Ryan Watson
:: Twitter: @gentlemanwatson
:: Version: 1.0
:: Credits: Credit to Syspanda.com and their Sysmon GPO article for the kick off point
:: https://www.syspanda.com/index.php/2017/02/28/deploying-sysmon-through-gpo/
:: ** IMPORTANT **
:: 1) Create a Sysmon folder with the SYSVOL share on your domain controller
:: 2) Download Sysmon from Microsoft and place both sysmon.exe and sysmon64.exe in
@yingmu52
yingmu52 / git sync
Created March 4, 2018 21:07 — forked from miguelgonz/git sync
git sync
#!/bin/sh
#To make use of this just copy it to your path, +x it, and do git sync
MAIN_BRANCH="develop"
CURRENT_CHANGES=`git status --porcelain`
CURRENT_BRANCH=`git symbolic-ref -q --short HEAD`
if [ "$CURRENT_CHANGES" != "" ]; then
git stash --include-untracked
fi
@yingmu52
yingmu52 / make_passbook.py
Created April 24, 2018 21:22 — forked from dschuetz/make_passbook.py
Simple hack to create Passbook .pkpass file
import sys, os.path, hashlib, re
import zipfile
import subprocess
from StringIO import StringIO
from io import BytesIO
#
# Passbook Hack
# David Schuetz
# 30 May 2014
@yingmu52
yingmu52 / a.swift
Last active June 5, 2018 03:36
ViewController Transition Animator
import Foundation
import UIKit
public struct Animation {
public let duration: TimeInterval
public let closure: (UIView) -> Void
public init(duration: TimeInterval, closure: @escaping (UIView) -> Void) {
self.duration = duration
self.closure = closure
@yingmu52
yingmu52 / ds.swift
Created June 29, 2018 06:46
ksr datasource
public protocol ValueCell: class {
associatedtype Value
static var defaultReusableId: String { get }
func configureWith(value: Value)
}
open class ValueCellDataSource: NSObject {
private var values: [[(value: Any, reusableId: String)]] = []
open func configureCell(collectionCell cell: UICollectionViewCell, withValue value: Any) {}
@yingmu52
yingmu52 / 01-directory-structure.md
Created October 23, 2018 22:02 — forked from tracker1/01-directory-structure.md
Anatomy of a JavaScript/Node project.

Directory structure for JavaScript/Node Projects

While the following structure is not an absolute requirement or enforced by the tools, it is a recommendation based on what the JavaScript and in particular Node community at large have been following by convention.

Beyond a suggested structure, no tooling recommendations, or sub-module structure is outlined here.

Directories

  • lib/ is intended for code that can run as-is
  • src/ is intended for code that needs to be manipulated before it can be used
https://www.youtube.com/channel/UC0NJ9sgjUJaunTii3jhkqQg|snowboarding,gopro,gospin360,pov,fov,skiresort,backcountry,outdoor,adventure,snowboard,libtech,libtech orca,smith goggle, smith helmet, volcom jacket, jones
https://youtu.be/3Ecr0YBSXgw|go360,360,camera,gopro,snowboard,snowboarding
https://youtu.be/3GsL3Nw--XE|fantasticadventure,sunpeaksskiresort,libtechorca,gopro,hero5,wg2x,gimbal,kamloops,bc,canada
https://youtu.be/BCbTzi6--kg|fantasticadventure,bigwhiteskiresort ,libtechorca ,gopro ,hero5 ,wg2x ,gimbal ,kelowna ,bc ,canada
https://youtu.be/O8w96QZczaw|fantasticadventure ,bigwhiteskiresort ,libtechorca ,gopro ,hero5 ,wg2x ,gimbal ,kelowna ,bc ,canada,2020
https://youtu.be/HAx1A_nVsvg|fantasticadventure ,bigwhiteskiresort ,libtechorca ,gopro ,hero5 ,wg2x ,gimbal ,kelowna ,bc ,canada,2020
https://youtu.be/cbz9awMnyJ4|fantasticadventure ,cypressmountain ,snowboarding, cypress mountain ski resort, rain boarding, rain snowboarding
@yingmu52
yingmu52 / index.css
Created September 28, 2021 04:10
katie homework
#img_container {
border-width: 1pt;
border-color: black;
margin: 20px;
border-radius: 10px;
}