Skip to content

Instantly share code, notes, and snippets.

Avatar

Madis Otenurm Madis0

View GitHub Profile
@Madis0
Madis0 / averageEverySecond.java
Created Aug 25, 2021
Calculate and display the average every second
View averageEverySecond.java
package bit.clockworks; // probably unused lol
import java.util.ArrayList;
import java.util.Random;
public class Main implements Runnable {
@Override
public void run() {
View bindings.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bindings>
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="urlbar" extends="chrome://browser/content/urlbarBindings.xml#urlbar">
<implementation>
<method name="formatValue">
<body><![CDATA[
const textNode = this.editor.rootElement.firstChild;
if (this.focused) return;
try {
View userChrome.css tutorial
<h2>How to install userstyles in FX 57+?</h2>
<ol><li>Go to <b>about:support</b>, click the button <b>Open folder</b></li>
<li>Create a folder called <b>chrome</b>, inside that make an empty text file called <b>userChrome.css</b> (make sure it doesn't end with .txt!)</li>
<li>Select the style options you want, then click <b>Show CSS code</b>, copy the field contents</li>
<li>Paste the contents to the userChrome.css file and save it. Make sure the <i>@namespace</i> row appears only once, at the beginning!</li>
<li>Restart Firefox to see the changes.</li></ol>
If you already have the file, simply open it and add new code to the end (tutorial steps 3-5).
@Madis0
Madis0 / eesti-sonad.txt
Created Jul 1, 2016
Nimekiri eesti keelsetest sõnadest, kasutamiseks nt virtuaalse klaviatuuri soovitustes. Fail loodud, ühendades failid https://invokeit.wordpress.com/frequency-word-lists/ (et.txt) ning http://www.cl.ut.ee/ressursid/sagedused1/ (lemma_sonavorm_kahanevas.txt), töödeldes neid http://textmechanic.com/ abil.
View eesti-sonad.txt
This file has been truncated, but you can view the full file.
on
ma
ei
sa
see
et
ja
ta
kui