Skip to content

Instantly share code, notes, and snippets.

View isijara's full-sized avatar
🏠
Working from home

Ramón Isijara isijara

🏠
Working from home
View GitHub Profile
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,
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('');
@isijara
isijara / nginx.conf
Created April 20, 2016 23:02 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@isijara
isijara / configure.xml
Last active February 9, 2016 17:02 — forked from abythell/configure.xml
Ant script to download and configure the Netbeans platform, which enables Netbeans platform applications to be built without the IDE
<!--
Netbeans Platform Download-and-Config
Copyright 2013, Andrew Bythell <abythell@ieee.org>
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=".">
@isijara
isijara / designer.html
Last active August 29, 2015 14:14
designer
<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">