Skip to content

Instantly share code, notes, and snippets.

View mornir's full-sized avatar
🎮
Gaming

Jérôme Pott mornir

🎮
Gaming
View GitHub Profile
@Atinux
Atinux / keybindings.json
Last active January 16, 2022 05:43
VS Code Terminal Shortcuts
[
{
"key": "ctrl+shift+n",
"command": "workbench.action.terminal.new"
},
{
"key": "ctrl+shift+right",
"command": "workbench.action.terminal.focusNext"
},
{
@EquiFox
EquiFox / Temtems.json
Created January 27, 2020 20:37
Complete Temtem List + Techniques
[
{
"id":2,
"name":"Oree",
"description":"One of the first prototypes created in Nanto Labs, Oree's early versions were the forerunners of Digital Temtem. Inquisitive creatures by design, they show great curiosity and a boundless appetite for information.",
"baseAttack":65,
"baseDefense":44,
"baseHp":61,
"baseSpAttack":32,
"baseSpDefense":31,
@bjoerge
bjoerge / recover-schema.md
Last active August 22, 2023 08:56
How to recover lost schema from *.sanity.studio.md

First, go to https://<yourname>.sanity.studio (or to the url of your studio if it's hosted elsewhere). Then open the developer console (usually by one of the keyboard shortcuts Command+Option+I, F12 or Control+Shift+I depending on what browser/platform you are using)

Steps

  1. Open the Sources tab
  2. Find the app.bundle.js file in the sidebar tree view.
  3. Hit the pretty print source button
  4. Locate your schema types by searching (e.g. try searching for one of your custom types) it in the source view.
@tomtev
tomtev / ChildClasses.vue
Last active January 10, 2020 15:30
A simple Vue wrapper component that let you add classes to all children.
<script>
export default {
name: 'ChildClasses',
functional: true,
render (h, ctx) {
return ctx.children.map((vnode, index) => {
let { tag, data = {} } = vnode
let props = ctx.props
let children = vnode.children
let on = data.on || {}
@dan-dr
dan-dr / index.js
Created March 28, 2019 21:23
Sanity Backup to Dropbox on webtask.io
const sanity = require('@sanity/client')
const fs = require('fs')
const EOL = require('os').EOL
const flatMap = require('lodash.flatmap')
const { subDays, isBefore } = require('date-fns')
const sanityExport = require('@sanity/export')
/**
* @param context {WebtaskContext}
*/
@hacknug
hacknug / tailwind.config.js
Created February 8, 2019 16:54
TailwindCSS default config
/*
Tailwind - The Utility-First CSS Framework
A project by Adam Wathan (@adamwathan), Jonathan Reinink (@reinink),
David Hemphill (@davidhemphill) and Steve Schoger (@steveschoger).
Welcome to the Tailwind config file. This is where you can customize
Tailwind specifically for your project. Don't be intimidated by the
length of this file. It's really just a big JavaScript object and
@i-hardy
i-hardy / actions.js
Last active July 29, 2020 12:06
Streamlining Vuex actions with async/await and higher-order functions
import axios from 'axios';
export const fetchSomeData = async (store, params) => {
try {
const res = await axios.get(`endpoint/${params.id}`);
return store.commit('SET_SOME_DATA', res.data.result);
} catch (error) {
console.error(error.message);
}
};
@hdoro
hdoro / fetching-data-sanity-preview.md
Created September 17, 2018 22:43
My implementation of fetching data from Sanity for live-previewing on a Gatsby site. Extension of my guide on https://henrique.codes

Fetching and subscribing to data from Sanity

const sanityClient = require('@sanity/client');
const imageUrlBuilder = require('@sanity/image-url');

// I store my query in another file for reusability with
// the `gatsby-source-plugin`
const modularQueries = require('../../../../sanityQueries/modularQuery.js');
import { removeWhitespace } from '../../../utils/strings';
@CodingDoug
CodingDoug / README.md
Last active May 6, 2021 14:35
Building an assistant (chatbot) that translates languages, integrated with Slack
@igogrek
igogrek / How I stopped loving Angular.md
Last active April 2, 2024 03:00
How I stopped loving Angular

I've worked with AngularJS for many years now and still use it in production today. Even though you can't call it ideal, given its historically-formed architecture, nobody would argue that it became quite a milestone not only for evolution of JS frameworks, but for the whole web.

It's 2017 and every new product/project has to choose a framework for development. For a long time I was sure that new Angular 2/4 (just Angular below) will become the main trend for enterprise development for years to come. I wasn't even thinking of working with something else.

Today I refuse to use it in my next project myself.