Skip to content

Instantly share code, notes, and snippets.

View danielpinto8zz6's full-sized avatar
🇵🇹
PT

Daniel Pinto danielpinto8zz6

🇵🇹
PT
View GitHub Profile
import java.util.*;
public class EDTests {
TreapNode root = null;
TreapNode insert(TreapNode root, int key) {
// If root is null, create a new node and return it
if (root == null)
return new TreapNode(key);
@danielpinto8zz6
danielpinto8zz6 / users.sql
Last active November 11, 2018 20:53
Mysql database users table
-- phpMyAdmin SQL Dump
-- version 4.7.1
-- https://www.phpmyadmin.net/
--
-- Host: sql2.freemysqlhosting.net
-- Generation Time: 11-Nov-2018 às 20:50
-- Versão do servidor: 5.5.54-0ubuntu0.12.04.1
-- PHP Version: 7.0.32-0ubuntu0.16.04.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
@danielpinto8zz6
danielpinto8zz6 / BinarySearch.java
Last active December 11, 2019 12:45
Binary search in java
/**
* @param array A sorted array of ints to search through. This must be sorted.
* @param key an int to seach the array for
* @param start position where the arrays starts
* @param end position where the array ends
* @return wheter the key exists in the array
*/
public static boolean binarySearchRecursive(int[] array, int key, int start, int end) {
int middle = (start + end) / 2;
Section "OutputClass"
Identifier "intel"
MatchDriver "i915"
Driver "modesetting"
EndSection
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"