Skip to content

Instantly share code, notes, and snippets.

:: How to on/off the Hyper-v
$ bcdedit /set hypervisorlaunchtype [auto|off]
public class SwaggerConfig
{
public static void Register()
{
var thisAssembly = typeof(SwaggerConfig).Assembly;
GlobalConfiguration.Configuration
.EnableSwagger(c =>
{
c.SchemaFilter<SwaggerSchemaExample>();
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;
using System.Web.Http.ModelBinding;
namespace MyApi.Filters
{
SELECT DISTINCT object_name(id)
FROM syscomments
WHERE TEXT like '%내용%'
ORDER BY object_name(id)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Web;
using Newtonsoft.Json;
namespace Newtonsoft.Json.Serialization
{
/// <summary>
// cf. https://eslint.org/docs/user-guide/configuring
module.exports = {
extends: [
'@my-app/eslint-config', // cf. https://gist.github.com/jhlee8804/f6556886a251221d4d350a07b2327f9d
'plugin:vue/essential', // cf. https://eslint.vuejs.org/rules/#priority-a-essential-error-prevention
'@vue/eslint-config-prettier', // cf. https://github.com/vuejs/eslint-config-prettier
],
rules: {
'no-unused-vars': 'off',
# http://editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
:: Disable dashboard on macOS
defaults write com.apple.dashboard mcx-disabled -boolean YES
killall Dock
# vm 속도가 느린 경우 다음 내용을 vmx 파일 하단에 추가한다. (http://hotman.tistory.com/entry/VMWare-%EC%97%90-Mac-OSX-%EC%84%A4%EC%B9%98-%ED%9B%84-%EA%B7%B8%EB%9E%98%ED%94%BD-%EC%84%A4%EC%A0%95)
mksenable3d = "TRUE"
svga.vramSize = "536870912"
vmmouse.present = "FALSE"
'use strict';
(function () {
if (!String.prototype.format) {
// like a c# string.format method
// usage: "{0} of {1}".format('book', 'desk');
String.prototype.format = function () {
var args = arguments;
return this.replace(/{(\d+)}/g, function (match, number) {
return typeof args[number] != 'undefined' ? args[number] : 'undefined';