Skip to content

Instantly share code, notes, and snippets.

View nothingismagick's full-sized avatar

nothingismagick

View GitHub Profile
@nothingismagick
nothingismagick / GH Activity Feed
Last active October 29, 2020 13:40
GH Activity Feed
❗️ Closed issue #48 in iotaledger/stronghold.rs
🗣 Commented on #48 in iotaledger/stronghold.rs
❗️ Opened issue #74 in iotaledger/chronicle.rs
🗣 Commented on #135 in tauri-apps/tauri-docs
🎉 Merged PR #1024 in tauri-apps/tauri
@timhwang21
timhwang21 / curry-record.md
Last active January 9, 2023 21:34
Curry unary functions that take a record as an argument

curryRecord

This is an example of a function whose logic lives in the type definition rather than in the function body.

/**
 * @name `curryRecord`
 *
 * Takes a unary function that takes a record as an argument, and makes the
 * record partially applicable. Returns a new function that takes a partial of
@brianleroux
brianleroux / BeforeExitListener.js
Created September 12, 2019 22:04
Lambda NodeJS 10.x Default Runtime JavaScript
/** Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. */
"use strict";
/**
* The runtime has a single beforeExit function which is stored in the global
* object with a symbol key.
* The symbol is not exported.
* The process.beforeExit listener is setup in index.js along with all other
* top-level process event listeners.
*/
@bloodf
bloodf / prettyLog.ts
Created July 22, 2019 13:57
PrettyLog
export enum LogLevelName {
Info = 'info',
Warn = 'warn',
Error = 'error',
Method = 'method',
All = 'all',
None = 'none',
}
export enum LogLevelStyle {
@m0jimo
m0jimo / Quasar-FAQ.md
Last active August 22, 2019 06:43
Quasar FAQ

Here is a list of questions which are asked more often then others. If you know of a question that a lot of people ask, just ask it in a comment. If you would like to add to this faq, just leave a comment in the Q & A & R (question, answer, reference) format. Use Markdown! Let's Answer this!!!

Quasar framework FAQ

Although Quasar framework documentation covers most of the asked questions from users I think it would be nice to have quick reference guide to Frequently Asked Questions.

How to get a quick answer to my question?

If you like saving time to yourself and/or to Quasar users reacting to your answer please provide if possible:

  • Operating system, Browser (version), Quasar version quasar --version
  • link to jsFiddle or Codepen - you can create your own example in Codepen from the existing Quasar component examples e.g. [Docs - Quasar - Tabs](h
<template>
<q-page class="flex flex-center">
<div class="col">
<img alt="Quasar logo" src="statics/icons/icon-128x128.png">
<q-input class="col-12" label="Search folder..." v-model="path" outlined filled @keypress.enter="getFiles()">
<template #append>
<q-icon class="cursor-pointer" name="search" @click="getFiles()"/>
</template>
</q-input>
@frankdors
frankdors / QInputNumber.vue
Created April 10, 2019 15:28
My Custom Quasar Input Number
<script>
import { QInput } from 'quasar'
import { Money } from 'v-money'
import Util from '@services/util'
export default {
// Component <money> and Directive v-money https://github.com/vuejs-tips/v-money
// https://github.com/quasarframework/quasar/blob/v0.17/src/components/input/QInput.js
// https://github.com/quasarframework/quasar/blob/v0.17/src/mixins/input.js
extends: QInput,
@PhearZero
PhearZero / mock.sh
Last active November 27, 2018 19:52
Git Rebase and or Merge
#!/usr/bin/env bash
# This scenario creates a Github repository with two forks, one
# is stale/missing features from upstream forks/project
# Dir Structure:
# fakeproject
# fakeproject-fork
# fakeproject-stale-fork
@DrSensor
DrSensor / .gitconfig
Last active March 9, 2022 15:53
Git Tricks
[alias]
rescue = !git fsck --full --no-reflogs --unreachable --lost-found | grep commit | cut -d\\ -f3 | xargs -n 1 git log -n 1 --pretty=oneline > .git/lost-found.txt
ignore = !files={$(echo \"$@\" | tr ' ' ,)}.gitignore && echo '<-' github:$files && curl -sL https://raw.githubusercontent.com/github/gitignore/master/$files >> .gitignore && echo '->' .gitignore || echo FAIL && :
license-osi = !curl -sL https://raw.githubusercontent.com/OpenSourceOrg/licenses/master/texts/plain/$1 > LICENSE
license = !curl -sL https://raw.githubusercontent.com/github/choosealicense.com/gh-pages/_licenses/$1.txt > LICENSE
fork = !git clone $1 $3 --depth 1 && pushd ${3:-$(basename $1 .git)} > /dev/null && git remote add upstream $(git remote get-url origin) && git remote set-url origin $2 && popd > /dev/null && :
modlink = !pushd $1 && repo=$(git remote get-url origin) && popd && git submodule add $repo $2 && rm $2 && ln -s $1 $2 && :
first-commit = !git log $(git rev-list