Instantly share code, notes, and snippets.

View gist:e3e3e19c236645933b7e8572a91b81a2
Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:12:5-34:19 to override.
View keybase.md

Keybase proof

I hereby claim:

  • I am visgean on github.
  • I am visgean (https://keybase.io/visgean) on keybase.
  • I have a public key ASBMVy3A47Q0FD-hr28E8xVKpnk9oVcnTRV4YYYhC3zlOAo

To claim this, I am signing this object:

View README.md

Use:

  [root@rewarch ui]# patch windowManager.js < windowManager.js.patch 
  patching file windowManager.js
View gist:a12e5ff2bc4542c4c6614f8838864883
>>> def ff():
... k=5
... p = [1 for k in range(k)]
... print(p)
...
>>> dis(ff)
2 0 LOAD_CONST 1 (5)
3 STORE_FAST 0 (k)
3 6 BUILD_LIST 0
View debug.py
try:
self.wait.until(EC.presence_of_element_located(
(By.TAG_NAME, 'iframe')
))
except ElementNotVisibleException as e:
import base64
with open("/home/visgean/imageToSave.png", "wb") as fh:
fh.write(base64.b64decode(e.screen.encode()))
View ABTest.java
import java.util.HashSet;
public class ABTest {
private HashSet<String> very_priv = new HashSet<String>(10);
public static void main(String[] args) {
ABTest a = new ABTest();
ABTest b = new ABTest();
View rabbit.java
import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.Iterator;
public class Rabbit {
Integer[][] r;
int n;
public static void main (String[] args) {
View beads.java
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
public class Beads {
public static int rotated_index(int position, int length) {
return position % length;
}
View sort.java
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public class CustomComparator {
public static void main(String[] args) {
String[] names = {"bba", "b", "aaaa", "ccc"};
List<String> name_list = Arrays.asList(names);
System.out.println("Before : "+Arrays.toString(name_list.toArray()));
View nope.java
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
public class Main {