Skip to content

Instantly share code, notes, and snippets.

@aafwu00
aafwu00 / intellij_tips.md
Last active March 4, 2024 09:21
IntelliJ Tips, 익숙지 않은 분들을 위한

IntelliJ Tip 모음 2019.2.1 기준

IntelliJ 익숙지 않은 분께 도움이 될 tip, 모음

  • 가급적 최신 버전 유지
  • 버전이 2019.x 형태인데 저같은 경우 x 가 바뀔때 app cleaner 로 깔끔히 지우고 시작, 개취
    • intellij cache 를 많이 쓰는데 update 시 꼬이는 경우가 가끔 있고, 밀면 초기에 index 과정 지나면 좀 빠름
    • 신규 macOS 부터 Shift + Command + A 가 시스템 등록 되어있어서 System Preferences -> Keyboard -> Shortcuts -> Services -> Search man Page Index in Terminal 체크 해제

단축키(Mac 기준, keymap 은 Default Mac OS X 사용)

  • IntelliJ Learn Plugin 으로 따라하기 모드가 생김: 이것만 알아도 됨
@joyrexus
joyrexus / README.md
Last active February 24, 2024 15:16
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
@muendelezaji
muendelezaji / bash-to-zsh-hist.py
Created October 5, 2016 14:18 — forked from op/bash-history-to-zsh-history.py
Convert Bash history to Zsh history
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This is how I used it:
# $ cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history
import sys
import time
@alien11689
alien11689 / kotlin + spock build.gradle
Last active September 4, 2018 12:46
Gradle config for kotlin and spock test cooperation
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.0.0-beta-1103"
}
}
apply plugin: "kotlin"
@sorenlouv
sorenlouv / cpu-intensive.js
Last active December 19, 2023 06:00
A CPU intensive operation. Use to test imitate blocking code, test WebWorkers etc.
function mySlowFunction(baseNumber) {
console.time('mySlowFunction');
let result = 0;
for (var i = Math.pow(baseNumber, 7); i >= 0; i--) {
result += Math.atan(i) * Math.tan(i);
};
console.timeEnd('mySlowFunction');
}
mySlowFunction(8); // higher number => more iterations => slower
@jvanderwee
jvanderwee / YouTubeHelper.java
Created August 5, 2015 16:39
Extract video id from YouTube url in java
import com.google.inject.Singleton;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@Singleton
public class YouTubeHelper {
final String youTubeUrlRegEx = "^(https?)?(://)?(www.)?(m.)?((youtube.com)|(youtu.be))/";
final String[] videoIdRegex = { "\\?vi?=([^&]*)","watch\\?.*v=([^&]*)", "(?:embed|vi?)/([^/?]*)", "^([A-Za-z0-9\\-]*)"};
@bloodredsun
bloodredsun / ExampleThatLogs.java
Last active March 9, 2022 08:16
Unit testing logback based logging statements
package com.brs;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Simple class that we use to trigger a log statement.
*/
public class ExampleThatLogs {
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@rxaviers
rxaviers / gist:7360908
Last active May 29, 2024 00:01
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import BaseHTTPServer, SimpleHTTPServer
import ssl