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
/* | |
* Copyright (C) 2004 Baron Schwartz <baron at sequent dot org> | |
* | |
* This program is free software; you can redistribute it and/or modify it | |
* under the terms of the GNU Lesser General Public License as published by the | |
* Free Software Foundation, version 2.1. | |
* | |
* This program is distributed in the hope that it will be useful, but WITHOUT | |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
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
Attribute VB_Name = "ModStdIO" | |
Option Explicit | |
Private Declare Function GetStdHandle Lib "kernel32" (ByVal nStdHandle As Long) As Long | |
Private Declare Function ReadFile Lib "kernel32" (ByVal hFile As Long, _ | |
lpBuffer As Any, ByVal nNumberOfBytesToRead As Long, _ | |
lpNumberOfBytesRead As Long, lpOverlapped As Any) As Long | |
Private Declare Function WriteFile Lib "kernel32" (ByVal hFile As Long, _ | |
lpBuffer As Any, ByVal nNumberOfBytesToWrite As Long, _ | |
lpNumberOfBytesWritten As Long, lpOverlapped As Any) As Long |
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
#!/usr/bin/perl | |
use strict; | |
use warnings FATAL => 'all'; | |
use English qw(-no_match_vars); | |
use Lingua::EN::Fathom; | |
use TeX::Hyphen; | |
use List::Util qw(min); |
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
<?php | |
$permissions = array( | |
"owner_read" => 256, | |
"owner_write" => 128, | |
"owner_delete" => 64, | |
"group_read" => 32, | |
"group_write" => 16, | |
"group_delete" => 8, | |
"other_read" => 4, |
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
<?php | |
$permissions = array( | |
"owner_read" => 256, | |
"owner_write" => 128, | |
"owner_delete" => 64, | |
"group_read" => 32, | |
"group_write" => 16, | |
"group_delete" => 8, | |
"other_read" => 4, |
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
<?php | |
$permissions = array( | |
"owner_read" => 256, | |
"owner_write" => 128, | |
"owner_delete" => 64, | |
"group_read" => 32, | |
"group_write" => 16, | |
"group_delete" => 8, | |
"other_read" => 4, |
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
<?php | |
$permissions = array( | |
"owner_read" => 256, | |
"owner_write" => 128, | |
"owner_delete" => 64, | |
"group_read" => 32, | |
"group_write" => 16, | |
"group_delete" => 8, | |
"other_read" => 4, |
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
type SimpleEWMA float64 | |
// Value returns the current value of the moving average. | |
func (e *SimpleEWMA) Value() float64 { | |
return float64(*e) | |
} | |
// Add adds a value to the series and updates the moving average. | |
func (e *SimpleEWMA) Add(value float64) { | |
if *e == 0 { // this is a proxy for "uninitialized" |
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
package main | |
import ( | |
"log" | |
"net" | |
"os" | |
"os/signal" | |
"sync" | |
"syscall" | |
"time" |
NewerOlder