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
@Override | |
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | |
View view = inflater.inflate(R.layout.expandable, container, false); | |
ExpandableAdapter adapter = new ExpandableAdapter(); | |
expandableListView.setAdapter(adapter); | |
setExpandableListViewHeight(expandableListView, -1); | |
expandableListView.setOnGroupClickListener(new ExpandableListView.OnGroupClickListener() { | |
@Override | |
public boolean onGroupClick(ExpandableListView parent, View v, int position, long 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
#!/bin/sh | |
BASE_URL="https://hls-test-bucket-will-be-removed.s3.ap-northeast-2.amazonaws.com/test3/" | |
FILE_KEY=file.key | |
FILE_KEY_INFO=file.keyinfo | |
openssl rand 16 > $FILE_KEY | |
echo $BASE_URL$FILE_KEY > $FILE_KEY_INFO | |
echo $FILE_KEY >> $FILE_KEY_INFO | |
echo $(openssl rand -hex 16) >> $FILE_KEY_INFO |
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
#!/bin/bash | |
NDK=/Users/moltak/Documents/jar/android-ndk-r10 | |
PLATFORM=$NDK/platforms/android-9/arch-arm/ | |
PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64 | |
function build_one | |
{ | |
./configure --target-os=linux \ | |
--prefix=$PREFIX \ |
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
"Plugin: vim-plug https://github.com/junegunn/vim-plug" | |
call plug#begin('~/.vim/plugged') | |
Plug 'vim-scripts/indentpython.vim' | |
Plug 'Valloric/YouCompleteMe' | |
Plug 'scrooloose/nerdtree' | |
Plug 'jistr/vim-nerdtree-tabs' | |
Plug 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'} | |
Plug 'leafgarland/typescript-vim' | |
Plug 'pangloss/vim-javascript' | |
Plug 'vim-syntastic/syntastic' |
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
setw -g mode-keys vi | |
set -g mouse on | |
bind m set -g mouse on | |
bind M set -g mouse off | |
# Smart pane switching with awareness of Vim splits. | |
# See: https://github.com/christoomey/vim-tmux-navigator | |
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \ | |
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'" | |
bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L" |
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
// MainActivity.java 100 | |
private void subscribe() { | |
subscription = subject | |
.filter(i -> this.isCanBlow) | |
.filter(i -> { | |
Log.d("BLOW", String.valueOf(i)); | |
final int BASE_THRESHOLD = 60; | |
return i >= BASE_THRESHOLD * 3; // 이곳을 수정하시면 됩니다. | |
}) |
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
{ | |
"Teracode": { | |
"district": "강남구", | |
"name": "name", | |
"code": "code", | |
"position": { | |
"lng": "lng", | |
"lat": "lat" | |
} | |
}, |
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
a = input() | |
b = input() | |
print('a={0}, b={1}'.format(a, b)) |
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
#!/bin/bash | |
python3 input.py <<STDIN -o other —options | |
first | |
second | |
STDIN |
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
import solve | |
def test_first(): | |
arg = [] | |
arg.append((1, 3)) | |
arg.append([3]) | |
result = solve.kSums(arg) | |
assert result[0] == 1 |
NewerOlder