Skip to content

Instantly share code, notes, and snippets.

View oxfist's full-sized avatar
🥑
.revolt

Andrés Quilodrán oxfist

🥑
.revolt
  • Chile
  • 17:50 (UTC -03:00)
View GitHub Profile
@oxfist
oxfist / understanding-word-vectors.ipynb
Created June 15, 2024 16:12 — forked from aparrish/understanding-word-vectors.ipynb
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oxfist
oxfist / js.TMsyntax
Created January 2, 2023 05:22 — forked from edfuh/js.TMsyntax
TextMate JS syntax file
{ scopeName = 'source.js';
comment = 'JavaScript Syntax: version 2.0';
fileTypes = ( 'js', 'htc', 'jsx' );
foldingStartMarker = '^.*\bfunction\s*(\w+\s*)?\([^\)]*\)(\s*\{[^\}]*)?\s*$';
foldingStopMarker = '^\s*\}';
patterns = (
{ name = 'meta.class.js';
comment = 'match stuff like: Sound.prototype = { É } when extending an object';
match = '([a-zA-Z_?.$][\w?.$]*)\.(prototype)\s*(=)\s*';
captures = {

Escaleras de Letras

Ejercicios

  1. Convierte la palabra PALO en la palabra GATA en 2 pasos o menos. Solo debes cambiar una letra de la palabra en cada paso. Cada paso debe crear una palabra válida del diccionario de español

    P A L O
    
    

Sherlock syllogisms

Booklet CS4FN Issue 1 - Reto 4 - Página 4


Silogismo (del griego syllogismos, 'conclusión, inferencia'): es un rompecabezas lógico en el que se extrae una conclusión a partir de unos hechos concretos y sólo de esos hechos.

Dados los siguientes hechos, identifique la letra que mejor completa el enunciado.

@oxfist
oxfist / setupLinters.sh
Created September 26, 2021 03:38
Basic script to setup ESLint and Prettier for a React app
#! /usr/bin/sh
yarn add eslint --dev
yarn run eslint --init # Don’t install packages
yarn add eslint --dev prettier eslint-plugin-prettier eslint-config-prettier
cp .gitignore .prettierignore
curl https://gist.github.com/oxfist/f28eca9d96e96cd10a92fd4ff80f7886 > .eslintrc.js
echo $'{\n "singleQuote": true\n}' > .prettierrc.json
echo 'Now add `eslint src/ && prettier -c src/` to package.json scripts'
@oxfist
oxfist / .eslintrc.js
Last active September 26, 2021 03:38
Minimal configuration for ESLint to work with Prettier for a React app
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'airbnb',
'eslint:recommended',
'plugin:react/recommended',
'plugin:prettier/recommended',
@oxfist
oxfist / clean_code.md
Created August 18, 2019 03:06 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules