Skip to content

Instantly share code, notes, and snippets.

View oscarnevarezleal's full-sized avatar

Oscar Nevarez oscarnevarezleal

View GitHub Profile
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "",
"Parameters": {
"VPCCidrBlock": {
"Description": "Select CIDR Block for VPC",
"Type": "String",
"Default": "10.0.0.0/16"
},
"Subnet1Cidrblock": {
@oscarnevarezleal
oscarnevarezleal / .project
Created September 6, 2019 12:36
.project file for a SpringBoot Application (STS)
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>gs-accessing-data-jpa-complete</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
<div class="w-full max-w-xs bg-white">
<div class="max-w-sm rounded overflow-hidden shadow-lg">
<div class="bg-scroll bg-top h-64 relative" style="background-image:url(https://pbs.twimg.com/profile_images/885868801232961537/b1F6H4KC_400x400.jpg);">
<span class="text-2xl absolute pin-b pin-r font-light text-right align-text-bottom text-white">
Jonathan Reinink
</span>
sudo apt install php7.1-common php7.1-fpm php7.1-cli php7.1-json php7.1-mysql php7.1-curl php7.1-intl php7.1-mcrypt php-pear php7.1-gd php7.1-zip php7.1-xml php7.1-mbstring
DOCKERID=$(docker ps --format "{{.ID}} {{.Command}}" | awk '{print $1 }')
@oscarnevarezleal
oscarnevarezleal / prime.php
Created October 14, 2015 20:22
prime numbers
<?php
/**
* @param $number
* @return bool
*/
function is_prime($number)
{
if ($number < 2) {
return false;
$homeNode = Node::create(array(
'type' => 'node',
'title' => 'Home page',
'langcode' => 'en',
'uid' => '1',
'status' => 1,
'promoted' => 1,
'field_fields' => array(),
));
$homeNode->save();
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-app.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;