Skip to content

Instantly share code, notes, and snippets.

View sysroad's full-sized avatar

Byungil Bae sysroad

  • NVT
  • Seoul, Korea
View GitHub Profile
#include <iostream>
#include <thread>
#include <vector>
#include <map>
#include <functional>
#include <concurrent_queue.h>
#include <concurrent_unordered_map.h>
#include <shared_mutex>
#include <condition_variable>
#include <atomic>
# common
**/.vscode/*
**/!.vscode/settings.json
**/!.vscode/tasks.json
**/!.vscode/launch.json
**/!.vscode/extensions.json
**/*.code-workspace
**/.vscode-test
# output
<Style x:Key="RoundedButton" TargetType="{x:Type Button}">
<Style.Setters>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="button" CornerRadius="5" BorderBrush="Black" BorderThickness="1" Background="#333">
<TextBlock Text="{TemplateBinding Button.Content}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
@sysroad
sysroad / cloudSettings
Last active June 23, 2021 02:38
Setting Sync
{"lastUpload":"2021-06-23T02:38:54.903Z","extensionVersion":"v3.4.3"}
@sysroad
sysroad / change-ubuntu-mirror.sh
Created September 4, 2019 05:18 — forked from lesstif/change-ubuntu-mirror.sh
우분투(ubuntu)의 apt 기본 미러(mirror)를 다음 카카오(kakao), 네오위즈(neowiz), harukasan 으로 변경
#!/bin/sh
SL=/etc/apt/sources.list
PARAM="r:hm:dna"
KAKAO=mirror.kakao.com
NEOWIZ=ftp.neowiz.com
HARU=ftp.harukasan.org
@sysroad
sysroad / gist:bc9daf3cd06fb36df48e
Created October 2, 2015 05:39
Passing by array params to Procedure
USE [TestDB]
GO
CREATE PROCEDURE [dbo].[test_sp]
@data1 nvarchar(max),
@data2 nvarchar(max),
@data3 nvarchar(max)
AS
BEGIN
#include <hiredis\hiredis.h>
#include "json\json.h"
#include <vector>
#pragma comment(lib, "hiredis.lib")
#pragma comment(lib, "Win32_Interop.lib")
#pragma comment(lib, "lua.lib")
#pragma comment(lib, "json_vc71_libmtd.lib")
int _tmain(int argc, _TCHAR* argv[])
@sysroad
sysroad / gist:6d055d49fbdd29f394d6
Last active August 29, 2015 14:24
redis monitoring
#include <hiredis\hiredis.h>
#include <stdio.h>
#pragma comment(lib, "hiredis.lib")
#pragma comment(lib, "Win32_Interop.lib")
#pragma comment(lib, "lua.lib")
int _tmain(int argc, _TCHAR* argv[])
{
timeval tv;
@sysroad
sysroad / mt19937-64.cs
Created May 7, 2013 09:42
mt19937-64 C 구현 코드를 C# 으로 옮긴 것.
using System;
namespace MersenneTwister
{
// Implementation porting from C version of mt19937-64
// coded by Makoto Matsumoto and Takuji Nishimura
//
// Copyright (C) 2004, Makoto Matsumoto and Takuji Nishimura,
// All rights reserved.
//