- Racket
- Pyret
This file contains hidden or 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
// Huffman estimation given symbol counts | |
val symbolCountsIn = Array(57728,32858,49395,15703,26381,4506,5797,1129,958,392,164,278,61,206,30,193,19,172,9,150,4,91,4,91,1,71,4,44,2,29,1,28,1,32,0,15,0,8,0,12,0,11,0,15,0,6,0,4,0,0,0,2,0,1,0,2) | |
case class Symbol(count:Int, idx: Int) | |
sealed trait TreeNode { | |
def value:Int | |
} |
This file contains hidden or 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
public class Compute { | |
public static void main(String args[]) { | |
final long start = System.currentTimeMillis(); | |
final long ans = rep(8000); | |
final long end = System.currentTimeMillis(); | |
System.out.println(ans); | |
System.out.println("Time taken (ms): " + (end - start)); | |
} | |
public static long rep(long n) { |
- The certificate file used by the reverse proxy should be exactly the same as the one used by synapse. If you use the concatenated certificate chain on the reverse-proxy, it should be the same in synapse.
- You need to generate and give Diffie Hellman parameters to the reverse proxy. This ensures that the cipher suites required by matrix are available in the reverse proxy.
- Matrix servers use the 8448 port to talk with each other by default.
- Either you need to expose this port (8448) in the firewall, or you need to add a SRV record in the DNS pointing to port 443 (https port).
- This tool can help diagnose problems.
This file contains hidden or 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
// Authored by the "HeadBanger" team at SHD India. | |
// Shared under MIT License | |
#include <Servo.h> | |
#define NUM_PINS 3 | |
int sensorPins[NUM_PINS] = {A0, A1, A2}; | |
int sensorValues[NUM_PINS] = {0, 0, 0}; |
This file contains hidden or 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
import scala.sys.process._ | |
import java.nio.file.Files | |
import java.nio.file.Paths | |
val flif1 = args(0) | |
val flif2 = args(1) | |
val imgBase = args(2) | |
val images = Seq("ls", "-1", imgBase).lineStream.filter(_.endsWith(".png")).toList |
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 8 columns, instead of 1 in line 6.
This file contains hidden or 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
BeigePyraBack.png.2624e1242871643a4cc9e0a3edc015d8.png.d80576b60a14f708468a147bc1ced015.png, 0, 300899, 13026, 12785, 0.001651469967328012, 0.0017180199502035975, 0.00007 | |
BeigePyraBack.png.2624e1242871643a4cc9e0a3edc015d8.png.d80576b60a14f708468a147bc1ced015.png, 20, 300899, 16249, 15912, 0.0014276399742811918, 0.0014876299537718296, 0.00006 | |
BeigePyraBack.png.2624e1242871643a4cc9e0a3edc015d8.png.d80576b60a14f708468a147bc1ced015.png, 40, 300899, 22041, 21626, 0.0011894300114363432, 0.0012190600391477346, 0.00003 | |
BeigePyraBack.png.2624e1242871643a4cc9e0a3edc015d8.png.d80576b60a14f708468a147bc1ced015.png, 60, 300899, 27274, 26511, 0.0010326399933546782, 0.0010415699798613787, 0.00001 | |
BeigePyraBack.png.2624e1242871643a4cc9e0a3edc015d8.png.d80576b60a14f708468a147bc1ced015.png, 80, 300899, 81539, 79640, 3.197799960616976E-4, 3.377299872227013E-4, 0.00002 | |
BeigePyraBase.png.e82c2a43169481d4417c2005616bc48f.png, 0, 366612, 25649, 24886, 0.002077220007777214, 0.0022704401053488255, 0.00019 | |
BeigePyraBase.png.e82c2a43169 |
This file contains hidden or 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
/* | |
Example application of FLIF decoder using libflif_dec | |
Copyright (C) 2017 Harshad RJ | |
Based on the viewflif code. | |
License: Creative Commons CC0 1.0 Universal (Public Domain) | |
https://creativecommons.org/publicdomain/zero/1.0/legalcode | |
*/ |