Skip to content

Instantly share code, notes, and snippets.

View Al-un's full-sized avatar
💭
Plop

Al-un Al-un

💭
Plop
  • Tokyo
View GitHub Profile
@Al-un
Al-un / Cuisine.md
Last active October 5, 2020 13:59
@riddla
riddla / .eslintrc.js
Created February 27, 2019 07:28
ESLint config for TypeScript and Vue
module.exports = {
root: true,
env: {
node: true
},
extends: [
'prettier',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
@xameeramir
xameeramir / default nginx configuration file
Last active June 22, 2024 13:25
The default nginx configuration file inside /etc/nginx/sites-available/default
# Author: Zameer Ansari
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
@milankorsos
milankorsos / redux-actions.ts
Last active November 10, 2022 10:58
Correct TypeScript typing example for Redux Thunk actions
import {Action, ActionCreator, Dispatch} from 'redux';
import {ThunkAction} from 'redux-thunk';
// Redux action
const reduxAction: ActionCreator<Action> = (text: string) => {
return {
type: SET_TEXT,
text
};
};
@jedfoster
jedfoster / SassMeister-input.scss
Last active June 2, 2024 20:19
JavaScript version of Sass' mix() function
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
body {
width: 100%;
height: 10em;
background: mix(#ff0000, #0000bb, 75);
}