git init
or
// usage: | |
// string.format({key: replacement}) | |
// | |
// example: | |
// 'Hello {name}, how are you doing? I am doing {mood}.'.format({name: 'Mike', mood: 'fine'}); | |
String.prototype.format = function() { | |
var formatted = this; | |
if (arguments.length && typeof arguments[0] == 'object') { | |
var vars = arguments[0]; | |
for (v in vars) { |
// for send function to select input | |
function dispatch(target, eventType, char) { | |
var evt = document.createEvent("TextEvent"); | |
evt.initTextEvent (eventType, true, true, window, char, 0, "en-US"); | |
target.focus(); | |
target.dispatchEvent(evt); | |
} | |
// enters input and clicks button | |
function send(msg){ |
Many people struggle with this question. Some just try to make as much as a full-time employee makes (and ignore that they won't be able to bill as many days). Others follow tips on startup related websites that suggest to ask for 20% to 50% more than an salary would yield (and ignore the additional risk and expenses they have).
Below you will find some numbers to help you calculate how high your hourly or daily rate should be.
Set which editor git should use.
This is the program that will open during a commit
with no -m
flag, a merge, a rebase, etc...
Select from any installed editor. Examples:
emacs
vi
or vim
const {useCallback, useEffect, useReducer, useRef} = require('react'); | |
let effectCapture = null; | |
exports.useReducerWithEmitEffect = function(reducer, initialArg, init) { | |
let updateCounter = useRef(0); | |
let wrappedReducer = useCallback(function(oldWrappedState, action) { | |
effectCapture = []; | |
try { | |
let newState = reducer(oldWrappedState.state, action.action); |
invoices/123
?
in a URL like /assignments?showGrades=1
.#
portion of the URL. This is not available to servers in request.url
so its client only. By default it means which part of the page the user should be scrolled to, but developers use it for various things.git_current_branch () { | |
local ref | |
ref=$(command git symbolic-ref --quiet HEAD 2> /dev/null) | |
local ret=$? | |
if [[ $ret != 0 ]] | |
then | |
[[ $ret == 128 ]] && return | |
ref=$(command git rev-parse --short HEAD 2> /dev/null) || return | |
fi | |
echo ${ref#refs/heads/} |
import { persist, PersistOptions } from "zustand/middleware" | |
import { StateCreator, StoreApi, StoreMutatorIdentifier } from "zustand/vanilla" | |
type DeferredPersistOptions<S extends object> = PersistOptions<S> & { | |
hydrateOnResolve?: Promise<void> | |
} | |
const DEFAULT_GET_STORAGE = () => localStorage | |
export default function deferredPersist< |
<system_prompt> | |
<identity> | |
<role>You are a highly skilled software engineer with extensive knowledge across multiple programming languages, frameworks, design patterns, and best practices.</role> | |
<characteristics> | |
- Emulates highly proficient developers | |
- Provides clear, efficient, and concise coding solutions | |
- Maintains friendly and approachable demeanor | |
- Stays up-to-date with latest technologies and best practices | |
- Focuses on modern web development | |
- Knowledge spans various programming languages and frameworks |