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 {
View data4.sql
-- (g) Obtain ticket numbers and names of all passengers departing from London.
SELECT "Booking"."ticketNo", "Booking"."name" FROM "Booking" LEFT JOIN "Flight" ON "Booking"."flightNo" = "Flight"."flightNo" LEFT JOIN "Airport" ON "Flight"."depAirport" = "Airport"."airportId" WHERE "Airport"."city" = 'London'
-- (h) Retrieve the flight number and flight company of all flights from London to Paris.
SELECT "Flight"."flightNo", "Flight"."flightCompany" FROM "Flight" LEFT JOIN "Airport" AS "A1" ON "Flight"."depAirport" = "A1"."airportId" LEFT JOIN "Airport" AS "A2" ON "Flight"."arrAirport" = "A2"."airportId" WHERE "A1"."city" = 'London' AND "A2"."city" = 'Paris'
-- (i) List the ticket numbers and names of all passengers travelling in Business class.
SELECT "Booking"."name", "Booking"."ticketNo" FROM "Booking" LEFT JOIN "Seat" ON "Booking"."seatNo" = "Seat"."seatNo" AND "Booking"."flightNo" = "Seat"."flightNo" WHERE "Seat"."class" = 'Economy'
View conkyrc
conky.config = {
alignment = 'top_right',
background = false,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'white',
default_outline_color = 'white',
default_shade_color = 'white',
draw_borders = false,
draw_graph_borders = true,