A collection of fish functions to make my life easier.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RydMike LINTER Preferences v2.0.0 | |
# | |
# Get this file here: https://gist.github.com/rydmike/fdb53ddd933c37d20e6f3188a936cd4c | |
# | |
# We include and activate all lint rules, later below we disable the not used or desired ones. | |
# You can find a list of all lint rules to put in your all_lint_rules.yaml file here: | |
# https://dart-lang.github.io/linter/lints/options/options.html | |
# | |
# For a full comparison of all lint rules settings in rule styles listed below, please see this | |
# sheet: https://docs.google.com/spreadsheets/d/1Nc1gFjmCOMubWZD7f2E4fLhWN7LYaOE__tsA7bf2NjA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Demo', | |
debugShowCheckedModeBanner: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ruffle-unofficial # you probably want to 'snapcraft register <name>' | |
base: core # the base snap is the execution environment for this snap | |
version: '20210304nightly' # just for humans, typically '1.2+git' or '1.3.2' | |
summary: "A Flash emulator" | |
description: | | |
Ruffle is an Adobe Flash Player emulator. | |
architectures: | |
- run-on: [amd64] | |
build-on: [amd64] | |
grade: devel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using static Godot.GD; | |
using Godot; | |
public enum LogLevel | |
{ | |
TRACE, | |
DEBUG, | |
INFO, | |
WARNING, |
Here are the installation steps on Ubuntu (this installation will also work on any Debian-based distribution):
- Open a terminal window.
- Issue the command sudo apt-get install postgresql.
- Type the sudo password necessary to give you admin rights and hit Enter.
- Allow apt to pick up any necessary dependencies.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Place your snippets for rust here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Hashnode Better Editor | |
// @namespace https://github.com/erayerdin | |
// @version 0.1 | |
// @description Better editor for hashnode. | |
// @author Eray Erdin | |
// @include https://hashnode.com/draft/* | |
// @include https://hashnode.com/create/story | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
import pytest | |
DATETIME_FIELDS = (models.DateTimeField, models.DateField, models.TimeField) | |
class BaseModelTest: | |
model: models.Model = None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export exit_code="0" | |
# if you want to start a dummy flask server | |
# export FLASK_APP="server.py" | |
# flask run --port 2333 --no-debugger --no-reload > /dev/null 2>&1 & | |
# I didn't find requests-mock practical, so written my own server instead | |
# what above does is it starts a server, puts it into background, redirects all output to /dev/null |
NewerOlder