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
extends RichTextLabel | |
var width_adjust = 1.4 | |
var default_font = get("custom_fonts/normal_font") | |
# Array of string representing multi-line text. | |
func set_text(lines:Array): | |
clear() | |
for ln in lines: |
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
#!/bin/sh -e | |
# Executes i3lock-color with a configured DPMS setting. | |
# This is to turn off the displays much quicker when locking the system. | |
# Also scales the image to fit the resolution | |
revert() | |
{ | |
xset dpms $default_sleep_time && | |
rm $wallpaper |
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
using System; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
// To get access to the selection window: https://github.com/vexe/VFW | |
using Vexe.Editor.Windows; |
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
Copyright (c) 2012-2024 Scott Chacon and others | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to | |
the following conditions: |
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
#ifndef AVL_H | |
#define AVL_H | |
#include <iostream> | |
#include <stdlib.h> | |
#include <stack> | |
#include "../data_structs/queueLL.h" | |
using std::stack; |
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
void remove(int x) | |
{ | |
node *p=top; | |
node *q=NULL; | |
while(p!=NULL) | |
{ | |
if(p->data==x) | |
q=p; | |
p=p->next; |
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
/** | |
* | |
* @author unit978 | |
*/ | |
public class BST_Driver { | |
public static void main(String[] args) { | |
BinarySearchTree<Integer> bst = new BinarySearchTree(); | |