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
import com.beust.klaxon.JsonObject | |
import com.beust.klaxon.JsonReader | |
import java.io.StringReader | |
fun main(args: Array<String>) { | |
val objectString = """{ | |
"name" : "Joe", | |
"age" : 23, | |
"flag" : true, |
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
let validCard = (card = '') => { | |
card = card.replace(/\s/g, '').split('').reverse().join(''); | |
let total = Number(card[0]); | |
for(let i = 1; i < card.length; i++) { | |
let digit = card[i]; | |
if(i % 2 == 1) { | |
digit = digit * 2; | |
if(digit > 9) { | |
let values = (digit + "").split(''); |
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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
<!-- | |
Netbeans Platform Download-and-Config | |
Copyright 2013, Andrew Bythell <[email protected]> | |
http://angryelectron.com/ | |
This Ant script is used to download and configure the Netbeans platform, | |
allowing Netbeans platform applications to be built without the IDE. | |
--> | |
<project name="configure-platform" default="configure" basedir="."> |
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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-menu-button/core-menu-button.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<polymer-element name="my-element"> |