π€
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @see {@link https://stephenhaney.com/2020/get-contenteditable-plaintext-with-correct-linebreaks} | |
* @see {@link https://github.com/StephenHaney/stephenhaney/issues/6} | |
*/ | |
function parseValueFromContentEditable(e) { | |
let newValue = '' | |
let isOnFreshLine = true | |
function parseChildNodesForValueAndLines(childNodes) { | |
for (let i = 0; i < childNodes.length; i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT DISTINCT object_name(id) | |
FROM syscomments | |
WHERE TEXT like '%λ΄μ©%' | |
ORDER BY object_name(id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* Javascript version of https://gist.github.com/jbroadway/2836900 | |
* | |
* Slimdown - A very basic regex-based Markdown parser. Supports the | |
* following elements (and can be extended via Slimdown::add_rule()): | |
* | |
* - Headers | |
* - Links |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SwaggerConfig | |
{ | |
public static void Register() | |
{ | |
var thisAssembly = typeof(SwaggerConfig).Assembly; | |
GlobalConfiguration.Configuration | |
.EnableSwagger(c => | |
{ | |
c.SchemaFilter<SwaggerSchemaExample>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ lsof -n -i4TCP:$PORT | grep LISTEN | |
$ lsof -n -iTCP:$PORT | grep LISTEN | |
$ lsof -n -i:$PORT | grep LISTEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://editorconfig.org | |
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_size = 2 | |
indent_style = space | |
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $chatList = $('.chat_list'); | |
if ($chatList.length > 0) { | |
setInterval(function () { | |
var controller = angular.element($chatList).scope(), | |
messages = controller.messages, | |
count = messages.length, | |
limit = 100; | |
if (count > limit) { | |
var offset = count - limit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
NewerOlder