Skip to content

Instantly share code, notes, and snippets.

View seayxu's full-sized avatar
🎯
Focusing

Hsu seayxu

🎯
Focusing
View GitHub Profile
@seayxu
seayxu / Startup.cmd
Created May 6, 2022 10:51
create startup by sendto create app shortcut or copy app shortcut
pwsh -ExecutionPolicy ByPass -NoProfile "%~dp0Startup.ps1" %*
@seayxu
seayxu / foreach-jsonnode
Created May 31, 2016 03:44
C# foreach json node function by Newtonsoft.Json
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
@seayxu
seayxu / dynamic-load-css-and-js-file
Created April 19, 2016 16:18
dynamic load css and javascript file
//dynamic load css file
function loadcss(path){
if(!path || path.length === 0){
throw new Error('argument "path" is required !');
}
var head = document.getElementsByTagName('head')[0];
var link = document.createElement('link');
link.href = path;
link.rel = 'stylesheet';
link.type = 'text/css';
@seayxu
seayxu / webhook-asp.net-sample
Last active April 14, 2016 06:38
git webhook asp.net sample
if (!IsPostBack)
{
RetInfo info = new RetInfo();
string ret = null;
try
{
using (Stream input = HttpContext.Current.Request.InputStream)
{
if (input == null || input.Length <= 0)
{
@seayxu
seayxu / webhook-php-sample
Last active April 14, 2016 06:26
git webhook sample for php
<?php
/*
* description: git webhook sample
* author: seayxu
* email: seayxu@gmail.com
*/
header('Content-type: text/html;charset=utf-8');
ini_set('date.timezone','Asia/Shanghai');
error_reporting(1);
@seayxu
seayxu / Bootstrap Checkbox Select All Or Cancel
Last active August 19, 2023 05:12
Bootstrap Checkbox Select All Or Cancel
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bootstrap Table Checkbox Select All and Cancel</title>
<link href="//cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<h2>Bootstrap Table Checkbox Select All and Cancel</h2>
<table class="table table-striped">
@seayxu
seayxu / CSharp-WinForm-Show-Console
Last active January 4, 2018 01:04
Show console in csharp winform func
namespace Demo
{
static class Program
{
[DllImport("kernel32.dll")]
static extern bool FreeConsole();//Call Sysytem API,Disposed Console
[DllImport("kernel32.dll")]
public static extern bool AllocConsole();//Call Sysytem API,Show Console
[STAThread]
@seayxu
seayxu / loading-html-css
Last active January 21, 2016 05:46
Loading:html+css
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>加载效果html+css实现|Loading</title>
<link rel="stylesheet" href="">
<style type="text/css" media="screen">
h3{text-align: center;padding-top: 30px;}
/*begin style-1*/