This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one
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
#include<iostream> | |
using namespace std; | |
int main() | |
{ | |
cout<<"Hello World!"<<endl; | |
return 0; | |
} | |
###hehe |
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
package chkr; | |
@FunctionalInterface | |
interface CheckedFunction<T, R> { | |
R apply(T t) throws Exception; | |
} | |
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
package chkr; | |
import java.util.function.Function; | |
@FunctionalInterface | |
interface CheckedFunction<T> { | |
T apply(T t) throws Exception; | |
} | |
public class Chkr { |
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.net.URL; | |
import java.net.URLClassLoader; | |
import java.sql.Connection; | |
import java.sql.Driver; | |
import java.sql.SQLException; | |
import java.util.Properties; | |
public class Test { | |
private static void tryConnect(Properties props, String... libs) throws ClassNotFoundException, InstantiationException, IllegalAccessException, SQLException { |
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.net.URL; | |
import java.net.URLClassLoader; | |
import java.sql.Connection; | |
import java.sql.Driver; | |
import java.sql.SQLException; | |
import java.util.Arrays; | |
import java.util.Properties; | |
import java.util.concurrent.ConcurrentHashMap; | |
import java.util.concurrent.CountDownLatch; |
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 com.sun.xml.internal.fastinfoset.util.CharArray; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
public class Test3 { | |
public static List<String> split(String s) { | |
List<String> res = new ArrayList<>(); |
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
// https://leetcode.com/problems/intersection-of-two-arrays/ | |
class Solution { | |
public static List<Integer> common = new ArrayList<>(); | |
public static boolean find(int[] arr1, int i1, int j1, int[] arr2, int i2, int j2) { | |
if (i1 > j1 || i2 > j2) return false; | |
int mid1 = (i1 + j1) / 2; | |
int mid2 = (i2 + j2) / 2; | |
if (arr1[mid1] == arr2[mid2]) { | |
common.add(arr1[mid1]); |
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
const co = require('co') | |
var count = 975; | |
let test_co = co.wrap(function* (n) { | |
if (n == count) | |
return; | |
yield test_co(n + 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
let yyy = async function() { | |
return 123; | |
} | |
let multipleAwait = async function () { | |
let a = await yyy(); | |
let b = await yyy(); | |
console.log(a+b); | |
} |
OlderNewer