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
package com.gypsyengineer.tlsbunny.jsse; | |
import javax.net.ssl.SSLServerSocket; | |
import javax.net.ssl.SSLServerSocketFactory; | |
import javax.net.ssl.SSLSocket; | |
import javax.net.ssl.SSLSocketFactory; | |
import java.io.*; | |
/* | |
* Don't forget to set the following system properties when you run the class: |
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
interface HttpConstants { | |
/** 2XX: generally "OK" */ | |
public static final int HTTP_OK = 200; | |
public static final int HTTP_CREATED = 201; | |
public static final int HTTP_ACCEPTED = 202; | |
public static final int HTTP_NOT_AUTHORITATIVE = 203; | |
public static final int HTTP_NO_CONTENT = 204; | |
public static final int HTTP_RESET = 205; | |
public static final int HTTP_PARTIAL = 206; |
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
/** | |
* Given a string, print the count of vowels in it. | |
* To add a minor complication, y should be counted as half (0.5) a vowel. | |
*/ | |
const Vowel = new Set('aeiou'), array = Array.from(input.toLowerCase()); | |
let y = 0; | |
const vowels = array.filter((c) => { | |
y += (c == 'y'); | |
return Vowel.has(c) |
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 denim2x <denim2x@cyberdude.com> | |
@license MIT | |
Pure-CSS Masonry layout, implemented via grid (http://mdn.io/grid); | |
all items are being nicely stacked vertically - thanks to | |
`grid-auto-rows` and `grid-row: span ...`. | |
SUIT CSS compliant implementation. | |
*/ |
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
Function Set-BlueLight { | |
[CmdletBinding()] | |
Param ( | |
[Parameter(Mandatory=$true)] [ValidateRange(0, 23)] [int]$StartHour, | |
[Parameter(Mandatory=$true)] [ValidateSet(0, 15, 30, 45)] [int]$StartMinutes, | |
[Parameter(Mandatory=$true)] [ValidateRange(0, 23)] [int]$EndHour, | |
[Parameter(Mandatory=$true)] [ValidateSet(0, 15, 30, 45)] [int]$EndMinutes, | |
[Parameter(Mandatory=$true)] [bool]$Enabled, | |
[Parameter(Mandatory=$true)] [ValidateRange(1200, 6500)] [int]$NightColorTemperature | |
) |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title> Demo </title> | |
<meta charset="UTF-8"> | |
<style> | |
.slider img { | |
display: inline-block; | |
} | |
.slider { |