Skip to content

Instantly share code, notes, and snippets.

View ichengzi's full-sized avatar
🥇
coding...

chengzi ichengzi

🥇
coding...
View GitHub Profile
@sunzsh
sunzsh / flex-transition-demo.html
Created October 15, 2022 14:01
全屏折叠面板demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body, html {
height: 100%;
@ichengzi
ichengzi / winnt.h
Created October 10, 2020 13:23 — forked from JamesMenetrey/winnt.h
WinNT.h in Windows 10 SDK (10.0.17763.0)
/*++ BUILD Version: 0073 Increment this if a change has global effects
Copyright (c) Microsoft Corporation. All rights reserved.
Module Name:
winnt.h
Abstract:
@mmazzarolo
mmazzarolo / charles-command-line-options.md
Last active June 7, 2024 09:55
Charles Proxy Automation

Charles command-line options

Charles supports a few command line options out of the box, documented here.
Unfortunately they seem to operate only as parameters for new Charles sessions, so you won't be able to run commands on a running instance of Charles.

Start a specific Charles session

A Charles session contains all of your recorded information. It is represented by the Session window; by default a new session is automatically created when you start Charles.
Sessions can be saved from File → Save Session (+S).
Once saved, if you want you can start Charles from the saved session by running:

import React from 'react';
import ReactDOM from 'react-dom';
class AppComponent extends React.Component {
state = {
numChildren: 0
}
render () {
@igorushko
igorushko / Base64Url.cs
Created September 15, 2017 13:05
Base64Url C#
public static class Base64Url
{
public static string Encode(byte[] arg)
{
if (arg == null)
{
throw new ArgumentNullException("arg");
}
var s = Convert.ToBase64String(arg);
@ichengzi
ichengzi / WPF- FontChooser.cs
Last active November 6, 2015 02:49
文字选择器:动态修改字体,大小,粗细等font属性
// http://stackoverflow.com/questions/11572636/set-value-to-fontdialog-in-wpf/11572921#11572921
// http://blogs.msdn.com/b/text/archive/2006/11/01/sample-font-chooser.aspx
// 微软官方博客的字体选择器例子
//WPF
System.Windows.Forms.FontDialog fontDialog = new System.Windows.Forms.FontDialog();
if (fontDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
FontFamilyConverter ffc = new FontFamilyConverter();
this.textAnnotation.FontSize = fontDialog.Font.Size;
@aksakalli
aksakalli / SimpleHTTPServer.cs
Last active September 11, 2024 20:35
SimpleHTTPServer in C#
// MIT License - Copyright (c) 2016 Can Güney Aksakalli
// https://aksakalli.github.io/2014/02/24/simple-http-server-with-csparp.html
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Net;
using System.IO;