List of helpful shortcuts for faster coding
If you have any other helpful shortcuts, feel free to add in the comments of this gist :)
import { isTest } from "@/lib/constants"; | |
import { Dialog } from "@headlessui/react"; | |
import { motion } from "framer-motion"; | |
const TRANSITIONS = { | |
DURATION: !isTest ? 0.5 : 0, | |
EASE: [0.32, 0.72, 0, 1], | |
}; | |
function Modal({ onClose = () => {}, initialFocusRef, children }) { |
class DioHelper { | |
final Dio dio; | |
DioHelper({@required this.dio}); | |
final CustomSharedPreferences _customSharedPreferences = | |
new CustomSharedPreferences(); | |
static String _baseUrl = BASE_URL; | |
String token = ""; | |
void initializeToken(String savedToken) { |
# This is a basic workflow to help you get started with Actions | |
name: CD Internal-Lane | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
tags: | |
- "internal-v*.*.*" # on every version tag will build a new android artifact example: v3.1.2+6 | |
jobs: |
name: Flutter CI | |
# This workflow is triggered on pushes to the repository. | |
on: | |
push: | |
branches: | |
- master | |
# on: push # Default will running for every branch. |
{ | |
"globals" : | |
{ | |
"alwaysShowTabs" : true, | |
"defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
"initialCols" : 120, | |
"initialRows" : 30, | |
"keybindings" : | |
[ | |
{ |
# Check https://dart-lang.github.io/linter/lints/ for lint rules documentation | |
# Update from http://dart-lang.github.io/linter/lints/options/options.html | |
analyzer: | |
errors: | |
missing_required_param: error | |
missing_return: error | |
todo: ignore | |
language: | |
strict-inference: true |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
var host = "127.0.0.1"; | |
var port = 1337; | |
var express = require("express"); | |
var app = express(); | |
app.use('/', express.static(__dirname + '/')); | |
app.listen(port, host); | |
console.log('Running server at http://localhost:' + port + '/'); |
This is a post by Joel Spolsky. The original post is linked at the bottom.
This is such a common question here and elsewhere that I will attempt to write the world's most canonical answer to this question. Hopefully in the future when someone on answers.onstartups asks how to split up the ownership of their new company, you can simply point to this answer.
The most important principle: Fairness, and the perception of fairness, is much more valuable than owning a large stake. Almost everything that can go wrong in a startup will go wrong, and one of the biggest things that can go wrong is huge, angry, shouting matches between the founders as to who worked harder, who owns more, whose idea was it anyway, etc. That is why I would always rather split a new company 50-50 with a friend than insist on owning 60% because "it was my idea," or because "I was more experienced" or anything else. Why? Because if I split the company 60-40, the company is going to fail when we argue ourselves to death. And if you ju