Example:
pbpaste | camelizeJson
Example:
pbpaste | camelizeJson
{ | |
"title": "Convert to en when ESC", | |
"//": "orignal author: johngrib(https://github.com/johngrib/simple_vim_guide/blob/master/md/with_korean.md)", | |
"rules": [ | |
{ | |
"description": "Convert to en when Ctrl+[", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { |
# Get the original name and the singularized name | |
original_name="$1" | |
singularized_name=$(singularize "$original_name") | |
# Compare the original name and the singularized name | |
if [[ "$original_name" != "$singularized_name" ]]; then | |
# If they are different, execute git mv | |
git mv "$original_name" "$singularized_name" | |
fi |
// Following RFC6749 5.1 Successful Response | |
export interface OAuth2SuccessfulResponse { | |
access_token: string; | |
token_type: string; | |
expires_in?: number; | |
refresh_token?: string; | |
scope?: string; | |
} |
name: using while in Github Workflow | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
test-loop: | |
timeout-minutes: 2 |
@Aspect | |
public class ControllerJsonStyleAdvice { | |
private Object findFirstAnnotatedArgument(JoinPoint joinPoint, Class annotation) { | |
Object[] args = joinPoint.getArgs(); | |
MethodSignature signature = (MethodSignature) joinPoint.getSignature(); | |
Method method = signature.getMethod(); | |
Annotation[][] parameterAnnotations = method.getParameterAnnotations(); | |
for (int i = 0; i < parameterAnnotations.length; i++) { |
import static org.junit.Assert.*; | |
import static org.junit.matchers.JUnitMatchers.*; // for non-hamcrest core matchers | |
import static org.mockito.Mockito.*; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.io.StringWriter; | |
import java.util.HashMap; | |
import java.util.Map; |
import org.springframework.stereotype.Component; | |
import lombok.RequiredArgsConstructor; | |
@Component | |
@RequiredArgsConstructor | |
class AFactory { | |
private final AComponent aComponent; |
from redis import Redis | |
import simplejson | |
import os | |
class Sidekiq(object): | |
"""Dirt simple Sidekiq client in Python. Can be used to create jobs.""" | |
def __init__(self): | |
host = os.environ['SIDEKIQ_REDIS_HOST'] | |
port = os.environ['SIDEKIQ_REDIS_PORT'] | |
db = os.environ['SIDEKIQ_REDIS_DB'] |
# require 'active_support/all' | |
def korean_topic_marker(str) | |
k = str[-1] # last one char | |
return '는' if k.mb_chars.decompose.size < 3 # 종성이 없는 경우 | |
return '은' | |
end | |
def korean_subject_marker(str) | |
k = str[-1] # last one char |