Skip to content

Instantly share code, notes, and snippets.

View pramoth's full-sized avatar

Pramoth Suwanpech pramoth

View GitHub Profile
@pramoth
pramoth / jdk8_optional_monad_laws.java
Created August 27, 2016 05:38 — forked from ms-tg/jdk8_optional_monad_laws.java
Does JDK8's Optional class satisfy the Monad laws? Yes, it does.
/**
* ```
* Does JDK8's Optional class satisfy the Monad laws?
* =================================================
* 1. Left identity: true
* 2. Right identity: true
* 3. Associativity: true
*
* Yes, it does.
* ```
HTMLElement.attributes = {
type:{name:’type’, value:’text’ },
value:{name:’value’, value:’Pramoth’ },
class:{name:’class’, value:’myclass’ }
}
<input type=”text” value=”Pramoth” class=”myclass”>
<input type=”text” value=”Pramoth” class=”myclass” disabled>
HTMLElement = {
type:’text’,
value:’Pramoth’,
className::’myclass’
}
@pramoth
pramoth / rfc3161.txt
Created December 29, 2017 01:59 — forked from Manouchehri/rfc3161.txt
List of free rfc3161 servers.
http://sha256timestamp.ws.symantec.com/sha256/timestamp
http://timestamp.globalsign.com/scripts/timstamp.dll
https://timestamp.geotrust.com/tsa
http://timestamp.verisign.com/scripts/timstamp.dll
http://timestamp.comodoca.com/rfc3161
http://timestamp.wosign.com
http://tsa.startssl.com/rfc3161
http://time.certum.pl
http://timestamp.digicert.com
https://freetsa.org
<plugin>
<groupId>cz.habarta.typescript-generator</groupId>
<artifactId>typescript-generator-maven-plugin</artifactId>
<version>1.29.366</version>
<executions>
<execution>
<id>generate</id>
<goals>
<goal>generate</goal>
</goals>
export interface QualifyOlderPerson {
id?: number;
pid?: string;
firstName?: string;
lastName?: string;
sex?: number;
birthDate?: any;
adl?: number;
groupId?: number;
createDate?: any;
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"preserveWhiteSpace": false
}