Skip to content

Instantly share code, notes, and snippets.

View ijsnow's full-sized avatar

Isaac Snow ijsnow

  • San Francisco, CA
View GitHub Profile
function range(start, end, order) {
var arr = [], i;
if (order === -1) {
for (i = start; i >= end; i--) {
arr.push(i);
}
} else {
for (i = start; i <= end; i++) {
arr.push(i);
@ijsnow
ijsnow / test.go
Created September 24, 2018 21:46
package main
import "fmt"
func main() {
fmt.Println("Hello, world!")
}
→ gitea $ TAGS="bindata" make generate all G:master[15H] fb3954f
can't load package: package github.com/go-gitea/gitea: code in directory /Users/isaac/ws/src/github.com/go-gitea/gitea expects import "code.gitea.io/gitea"
go generate github.com/go-gitea/gitea/cmd github.com/go-gitea/gitea/integrations github.com/go-gitea/gitea/models github.com/go-gitea/gitea/models/migrations github.com/go-gitea/gitea/modules/auth github.com/go-gitea/gitea/modules/auth/ldap github.com/go-gitea/gitea/modules/auth/oauth2 github.com/go-gitea/gitea/modules/auth/openid github.com/go-gitea/gitea/modules/auth/pam github.com/go-gitea/gitea/modules/avatar github.com/go-gitea/gitea/modules/base github.com/go-gitea/gitea/modules/cache github.com/go-gitea/gitea/modules/context github.com/go-gitea/gitea/modules/cron github.com/go-gitea/gitea/modules/generate github.com/go-gitea/gitea/modules/highlight github.com/go-gitea/gitea/modules/httplib github.com/go-gitea/gitea/modules/
import axios from 'axios';
import * as JSONC from '@sqs/jsonc-parser'
const getUsersQuery = `query AllUsers {
users {
nodes {
id
username
latestSettings {
id