Skip to content

Instantly share code, notes, and snippets.

View jaimefps's full-sized avatar

Jaime Pericás jaimefps

  • Cypress.io
  • Portland , OR
View GitHub Profile
var book = [
{
title: 'parte 1',
definitions: ['por causa de si ...', 'se llama finita en su genero ...'],
references: []
},
{
title: 'parte 2 (importante)',
definitions: ['definition parte 2 def 1', 'aqui hay otra cosa'],
references: [{
#include <Adafruit_RGBLCDShield.h>
// globals:
Adafruit_RGBLCDShield lcd = Adafruit_RGBLCDShield();
int counter = 0;
int currentButtons;
int currentPlayer = 1;
int currentStat = 0;
int cursor = 0;
int lastButton;
@jaimefps
jaimefps / index.html
Created December 7, 2019 20:58 — forked from chrisvfritz/index.html
Simplest possible HTML template
<!doctype html>
<html>
<head>
<title>This is the title of the webpage!</title>
</head>
<body>
<p>This is an example paragraph. Anything in the <strong>body</strong> tag will appear on the page, just like this <strong>p</strong> tag and its contents.</p>
</body>
</html>
@jaimefps
jaimefps / .gitignore
Created January 2, 2020 06:12 — forked from ericelliott/.gitignore
Sample Node project .gitignore
node_modules
build
npm-debug.log
.env
.DS_Store
@jaimefps
jaimefps / yaml-sorter.js
Last active April 29, 2020 20:26
Sort root level keys on a Yaml string or Yaml file.
fs = require("fs");
yaml = require("yamljs");
// Sort root level keys on a JS object.
function sortKeys(obj, promote = [], demote = [], sorter) {
const sorted = {};
promote.forEach((k) => (sorted[k] = obj[k]));
Object.keys(obj)