Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Hernández Alcojor dhAlcojor

View GitHub Profile
@dhAlcojor
dhAlcojor / gatsby-browser.js
Last active Jul 8, 2020
Font Awesome library with Gatsby
View gatsby-browser.js
import { library } from '@fortawesome/fontawesome-svg-core';
import { faChevronLeft } from '@fortawesome/free-solid-svg-icons';
export function onClientEntry() {
library.add(faChevronLeft);
}
@dhAlcojor
dhAlcojor / index.js
Created May 21, 2020
Simple Playwright test not working
View index.js
const playwright = require('playwright');
(async () => {
for (const browserType of ['chromium', 'firefox', 'webkit']) {
const browser = await playwright[browserType].launch();
try {
const context = await browser.newContext();
const page = await context.newPage();
await page.goto('https://google.com');
await page.fill('input[name=q]', 'cheese');
View app-installed.js
/**
* It can be useful to know that the user has installed the app succesfully
*/
window.addEventListener('appinstalled', e => {
// Do your analytics stuff
});
View alexa-lambda-simple-template.js
const Alexa = require('ask-sdk');
const HelloHandler = {
canHandle(handlerInput) {
},
handle(handlerInput) {
}
};
View keybase.md

Keybase proof

I hereby claim:

  • I am dhalcojor on github.
  • I am dhalcojor (https://keybase.io/dhalcojor) on keybase.
  • I have a public key ASARE6fVvfCvew8MfDprKwS8n5gutPVUdAWwj0aV8AGqSwo

To claim this, I am signing this object:

@dhAlcojor
dhAlcojor / company-requirements.md
Last active Oct 9, 2015
I'm planning to add the following text to my linkedin profile. Any suggestions for more requirements will be deeply appreciated ^^
View company-requirements.md

So, you want to hire me. And you, or the company you work for, have some requirements. Well I have some, too. The company that wishes to hire me meets some or all of them (at least half of them):

  • Uses git or mercurial for version control
  • Cares about quality of code and uses Sonar or similar, and has people whose only task is to test (QA)
  • Uses some agile methodology such as Scrum
  • Really cares about developers (and I'm not talking about just salary)
  • Values knowledge and experience over having some title
View keybase.md

Keybase proof

I hereby claim:

  • I am dhalcojor on github.
  • I am danielodinson (https://keybase.io/danielodinson) on keybase.
  • I have a public key whose fingerprint is ED14 2C06 E79C 252E 05AB 6AF2 8F46 EF0A 200F D3D2

To claim this, I am signing this object: