- http://stackoverflow.com/questions/804115 (
rebase
vsmerge
). - https://www.atlassian.com/git/tutorials/merging-vs-rebasing (
rebase
vsmerge
) - https://www.atlassian.com/git/tutorials/undoing-changes/ (
reset
vscheckout
vsrevert
) - http://stackoverflow.com/questions/2221658 (HEAD^ vs HEAD~) (See
git rev-parse
) - http://stackoverflow.com/questions/292357 (
pull
vsfetch
) - http://stackoverflow.com/questions/39651 (
stash
vsbranch
) - http://stackoverflow.com/questions/8358035 (
reset
vscheckout
vsrevert
)
Discover gists
import 'reflect-metadata'; | |
import { NextRequest, NextResponse } from "next/server"; | |
export const GetMethodSymbol = Symbol('GetMethod'); | |
export const PostMethodSymbol = Symbol('PostMethod'); | |
export const BodyMetadataKey = Symbol('Body'); | |
export const BodyTypeMetadataKey = Symbol('BodyType'); | |
interface NextRequestWithParams extends NextRequest { | |
params: { [key: string]: string }; | |
} |
import { NextResponse } from "next/server"; | |
import { PostMethodSymbol } from "./http-methods/post"; | |
import { GetMethodSymbol } from "./http-methods/get"; | |
export interface APIService { | |
GET:()=>void, | |
POST:()=>void, | |
} | |
// How can i fix the return type to avoid type check issue ? |
This specification is inspired by and supersedes the [AngularJS commit message format][commit-message-format].
We have very precise rules over how our Git commit messages must be formatted. This format leads to easier to read commit history.
Each commit message consists of a header, a body, and a footer.
# Used on Ubuntu 18.04 and 20.04 | |
# Find instructions for other OSes here: https://certbot.eff.org/instructions | |
# Install Certbot via Snaps | |
sudo snap install core; sudo snap refresh core | |
sudo snap install --classic certbot | |
sudo ln -s /snap/bin/certbot /usr/bin/certbot | |
# Install DNS CloudFlare plugin | |
sudo snap set certbot trust-plugin-with-root=ok |
There are several apps I currently have to re-sign. They are apps built by various outside vendors who do not want to share the source code, but we want the apps published from our account and we do not want to give them our certificate or access to publish the apps on our behalf. ¯\_(ツ)_/¯ These are the steps I use to re-sign them. I've decided to keep the steps manual because, frankly, it's an error-prone process, something done infrequently, and a moving target. Some detail always seems to shift with every major Xcode release or App Store change.
These steps are current as of iOS 14 and Xcode 12. They assume you already have your Distribution Certificate installed in Keychain.
I'm going to use an example named "Matt's App.ipa". If you need to provide instructions to a vendor to deliver this file to you properly, I've included what I use below.
This is done on devstack
environment.
"use strict" | |
function matprint(mat) { | |
let shape = [mat.length, mat[0].length]; | |
function col(mat, i) { | |
return mat.map(row => row[i]); | |
} | |
let colMaxes = []; | |
for (let i = 0; i < shape[1]; i++) { | |
colMaxes.push(Math.max.apply(null, col(mat, i).map(n => n.toString().length))); |
This project took place over the summer of 2022 as part of the Google Summer of Code, with support from the Intelligent Instruments Lab, Beagleboard Foundation and Bela. The project's objective was to improve the tooling available for those looking to use machine learning models in their Bela projects. For some background, Bela is a maker platform built on top of the Beaglebone Black with a focus on real-time audio and sensor processing for use in interactive art projects including digital instrument design. The availability of machine learning tools to be used with Bela would allow for new design practices incorporating machine learning models.
The original goal of this project arose out of the constraints of Bela's low-powered (in machine learning terms) processor and the real-time constraints of interactive projects. To aid development on this platform there is a need for performance analysis tools that allow for quick evaluation of different models on Bela. This proj