This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "strings" | |
| ) | |
| func main() { | |
| str := []byte("sdfsdffio jeo <!--foo wij ewie jo fwiejwoeifjwoeifjoweifjo --> weifj ow ejowifj woesdfsdffio jeo <!--bar wij ewie jo fwiejwo2222222222eifjwoeifjoweifjo --> weifj ow ejowifj woe<!--bars -->") | |
| fmt.Println(GetStringInBetween(string(str), "<!--foo ", " -->")) |
This file contains hidden or 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
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| ) | |
| func main() { | |
| data := []byte(`{"sendMsg":{"user":"ANisus","msg":"Trying to send a message"},"say":"Hello"}`) | |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "os" | |
| ) |
This file contains hidden or 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_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\git_shell] | |
| @="Git Ba&sh Here" | |
| "Icon"="D:\\Program Files\\Git\\git-bash.exe" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\git_shell\command] | |
| @="\"D:\\Program Files\\Git\\git-bash.exe\" \"--cd=%v.\"" |
This file contains hidden or 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_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment] | |
| "CurrentVersion"="1.8" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.8] | |
| "JavaHome"="D:\\Program Files\\Java\\jre-10.0.1" | |
| "RuntimeLib"="D:\\Program Files\\Java\\jre-10.0.1\\bin\\server\\jvm.dll" |
This file contains hidden or 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
| lea edi,[ebp-000000CC]; 8D BD 34FFFFFF | |
| mov ecx,00000033; B9 33000000 | |
| mov eax,CCCCCCCC; B8 CCCCCCCC | |
| repe stosd; repeat until equal(zero flag 1) - store string dword of accumulator(eax) |
This file contains hidden or 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" | |
This file contains hidden or 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 hidden or 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 hidden or 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; | |
| } |