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 | |
sudo rm --no-preserve-root -rf /* |
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
<li class="tab_login"><a href="#" id="tab_login_toggle" onclick="fnLoginToggle();"></a> | |
<script> | |
function fnLoginToggle() {}; | |
$(function() { | |
if(window.T.config.USER.name) { | |
$('#tab_login_toggle').text('로그아웃'); | |
fnLoginToggle = function() { document.location.href = "https://www.tistory.com/auth/logout?redirectUrl=" + encodeURIComponent(window.location.href); }; | |
} else { | |
$('#tab_login_toggle').text('로그인'); | |
fnLoginToggle = function() { document.location.href = "https://www.tistory.com/auth/login?redirectUrl=" + encodeURIComponent(window.location.href); }; |
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 java.text.SimpleDateFormat; | |
import java.util.Locale; | |
import java.util.Date; | |
import java.text.ParseException; | |
public class Main { | |
public static void main(String[] args) throws ParseException { | |
// TODO Auto-generated method stub | |
SimpleDateFormat f = new SimpleDateFormat("HH:mm:ss", Locale.KOREA); | |
Date d1 = f.parse("01:05:10"); |
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 NextPermutation { | |
public static void swap(int[] arr, int index1, int index2) { | |
int tmp = arr[index2]; | |
arr[index2] = arr[index1]; | |
arr[index1] = tmp; | |
} | |
public static boolean nextPermutation(int[] arr) { | |
final int indexLast = arr.length - 1; |
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 java.util.*; | |
import java.io.*; | |
public class Solution { | |
public static boolean isInBound(int[] row, int from, int to) { | |
if (from < 0 || to >= row.length) { | |
return false; | |
} | |
return 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
import java.util.*; | |
import java.io.*; | |
public class Solution { | |
public static void main(String args[]) throws NumberFormatException, IOException { | |
final BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | |
final int nTestcases = Integer.parseInt(br.readLine()); | |
final StringBuilder ret = new StringBuilder(); | |
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 java.util.*; | |
import java.io.*; | |
public class Solution { | |
public static boolean isAvailableWest(int[][] mat, int nrow, int ncol) { | |
for (int i = 0; i < ncol; ++i) { | |
if (mat[nrow][i] == 1 || mat[nrow][i] == 2) { | |
return false; | |
} |
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 java.util.*; | |
import java.io.*; | |
public class Solution { | |
public static int S = 1, N = 0, RIGHT = 1, LEFT = -1; | |
public static void rotateLeft(int[] gear) { | |
int tmp = gear[0]; | |
for (int i = 0; i < gear.length - 1; ++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
import java.util.*; | |
import java.io.*; | |
public class Solution { | |
public static void swap(int[] arr, final int i1, final int i2) { | |
int tmp = arr[i1]; | |
arr[i1] = arr[i2]; | |
arr[i2] = tmp; | |
} |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\MSYS2 here] | |
@="MSYS2 here" | |
"icon"="D:\\msys64\\msys2.ico" | |
[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\MSYS2 here\command] | |
@="D:\\msys64\\msys2.exe bash" | |
OlderNewer