Skip to content

Instantly share code, notes, and snippets.

View code-warrior's full-sized avatar

Roy Vanegas code-warrior

View GitHub Profile
@code-warrior
code-warrior / .eslintrc.json
Last active March 11, 2020 18:29
ESLint settings
{
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"no-console": 0,
"no-debugger": 0,
"indent": [
2,
{
"rules": {
"color-no-invalid-hex": true,
"font-family-no-duplicate-names": true,
"font-family-no-missing-generic-family-keyword": true,
"function-calc-no-unspaced-operator": true,
"function-linear-gradient-no-nonstandard-direction": true,
"string-no-newline": true,
"unit-no-unknown": true,
"property-no-unknown": true,
@code-warrior
code-warrior / states.php
Last active August 29, 2015 14:14
All the US states as options in a basic HTML form.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>A Form-based List of All US States</title>
</head>
<body>
<form method="GET" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<select id="state" name="state">
<option value="AL">Alabama</option>