This document is meant to serve as a repository of best practices for large, multi-environment source control management.
Table of Contents
import React, { useCallback, useEffect, useMemo, useState } from 'react' | |
import styled from 'styled-components' | |
import useDebouncedValue from '@/hooks/useDebouncedValue' | |
import Flex from '@/components/Flex' | |
import Icon from '@/components/Icon' | |
import Input from '@/components/Input' | |
import Text from '@/components/Text' |
#!/bin/bash | |
BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
BRANCH_ADDED=$(grep -c "\[$BRANCH_NAME\]" $1) | |
## if branch was not manually added and BRANCH_NAME is not empty + starts with "ch" | |
if ! [[ $BRANCH_ADDED -ge 1 ]] && [ -n $BRANCH_NAME ] && [[ $BRANCH_NAME =~ ^ch.* ]]; then | |
# remove everything after - or / (ch122/my-branch => ch122) | |
BRANCH_NAME="${BRANCH_NAME%%[-/]*}" |
This document is meant to serve as a repository of best practices for large, multi-environment source control management.
Table of Contents
require 'English' | |
FOUND_RESULTS = 0 | |
NO_RESULTS = 1 | |
ERROR = 2 | |
DEBUGGING_CODE = [ | |
'"puts "', | |
'" p "', | |
'"focus: true"' |
# frozen_string_literal: true | |
module API | |
module Client | |
class Comments < Grape::API | |
[Post, Profile, Story].each do |model| | |
namespace model.table_name do | |
route_param :ref, type: String do | |
namespace :comments do | |
desc "List comments for #{model.name.downcase}" |
0xa7038d1C6A29C7C37A2766e548A1D3348475cF2f
385NnPg8GjKLStp8LjK1xBzenp651FZnMn
3Czy8uqTTDHay2HwPFLCwBaJbwS81LfzTF
3GhnkZYKYCXBB5AbAMo1PDGUVSaLSrVUC9
3Ci9QAwZKQcosERBE6MYRDtU3twYcY2pHT
convert greyscale.png -set colorspace gray \ | |
-negate -background black -alpha shape -background black -alpha background \ | |
PNG32:black_with_alpha.png |
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
#include <string> | |
#include <map> | |
#include <list> | |
using namespace std; | |
int longest_repeated_string(string text){ |
// Welcome! require() some modules from npm (like you were using browserify) | |
// and then hit Run Code to run your code on the right side. | |
// Modules get downloaded from browserify-cdn and bundled in your browser. | |
'use strict'; | |
// | |
// es6 translation of below - made with https://babeljs.io/repl/ | |
// | |
// import axios from 'axios' | |
// |