Skip to content

Instantly share code, notes, and snippets.

@brianv0
brianv0 / ci_checklist.md
Last active October 25, 2017 12:47
Fermi CI Checklist
@brianv0
brianv0 / webhook.groovy
Created October 26, 2017 15:23
fermilat-webhook-scratch
import hudson.model.*
def ciJobs = ['ScineceTools', "GlastRelease"]
properties([
parameters([
stringParam(
description: 'Github Payload',
name: 'payload'
import requests
import json
import jwt
url = "https://example.com/protected/stuff/blah"
scope = ["write:/stuff", "read:mysql://lsst-qserv:4040/"]
subject = "bvan"
demo_json = {
@brianv0
brianv0 / typemappings.txt
Last active October 6, 2019 19:00
Type Mappings
Default Type Mappings for languages and frameworks:
Type C++ Python Java JDBC SQLAlchemy[1] VOTable
boolean bool bool boolean BOOLEAN BOOLEAN boolean
byte int8 int byte TINYINT SMALLINT[2] unsignedByte
short int16 int short SMALLINT SMALLINT short
int int32 int int INTEGER INTEGER int
long int64 int long BIGINT BIGINT long
float float float float FLOAT FLOAT float
double double float double DOUBLE FLOAT(precision=53) double
@brianv0
brianv0 / dbdatatypes.groovy
Last active April 24, 2018 17:03
Generate Database Types
@Grab('org.liquibase:liquibase-core:3.5.1')
import liquibase.database.core.*
import liquibase.datatype.core.*
def datatypes = [BooleanType,TinyIntType,SmallIntType,IntType,BigIntType,
FloatType,DoubleType,DecimalType,NumberType,
CharType,VarcharType,NCharType,NVarcharType,
DateTimeType,TimeType,TimestampType,DateType,
ClobType,BlobType,UUIDType]
@brianv0
brianv0 / testrun.md
Last active April 26, 2018 21:30
Test Report Output

DRP-00-00: Installation of the Data Release Production science payload

Execution at: 2018-04-26 09:51:18

Status

Pass

@brianv0
brianv0 / find_wise.md
Last active May 3, 2018 22:12
Find some WISE data via RegTAP

Find WISE collections:

Try this in GAVO Sync page (http://dc.zah.uni-heidelberg.de/__system__/tap/run/tap/async) at bottom, select HTML as output.

select ivoid, res_type, short_name, res_description, reference_url, content_type, res_version
  from rr.resource
  where ivoid like '%ivo://irsa.ipac/wise%'
@brianv0
brianv0 / s2.py
Last active May 14, 2018 07:36
s2 tests
latlng = pywraps2.S2LatLng_FromDegrees(24,42)
latlng2 = pywraps2.S2LatLng_FromDegrees(40,60)
latlng3 = pywraps2.S2LatLng_FromDegrees(26,46)
distance = latlng.GetDistance(latlng2)
# contains
Circle = pywraps2.S2Cap
circ_center = pywraps2.S2LatLng_FromDegrees(26,46).ToPoint()
circ_angle = pywraps2.S1Angle.Degrees(10)
package foo
import com.auth0.jwt.JWT
import com.auth0.jwt.algorithms.Algorithm
import com.auth0.jwt.exceptions.JWTVerificationException
import org.apache.commons.codec.binary.Base64
import org.junit.Test
import java.security.interfaces.RSAPublicKey
import java.security.spec.RSAPublicKeySpec
import java.math.BigInteger
@brianv0
brianv0 / science_platform.md
Last active June 15, 2018 12:48
Science Platform Gist