Skip to content

Instantly share code, notes, and snippets.

View robbestad's full-sized avatar
🎯
Focusing

Sven Anders Robbestad robbestad

🎯
Focusing
View GitHub Profile
@robbestad
robbestad / pyth.py
Last active November 15, 2023 20:17
Check PYTH allocation
import requests
def check(pubkey):
url = f"https://airdrop.pyth.network/api/grant/v1/amount_and_proof?ecosystem=solana&identity={pubkey}"
response = requests.get(url)
if response.status_code == 200:
jsondata = response.json()
amount = jsondata.get('amount')
if amount:
#!/bin/sh
# Redirect output to stderr.
exec 1>&2
# enable user input
exec < /dev/tty
staged=' -U0'
cached=' --cached'
# CHECK
<section>
<h1>Opprett en konto</h1>
<div>
Brukernavn kan være hva som helst, men passord må inneholde følgende: 2
store bokstaver, 2 spesialtegn (ek s: @!& osv) og minst 1 tall.
</div>
<div>
Har du allerede en bruker?
<a use:link href="/user/login">Klikk her</a>
for å logge inn.
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDkijMG0isGDySEhbWvVNzjbLSYNwzP2MoL9f4towJqVCIQz9gDpfHUe3HasRUQ4EPxOHpPZ3XrIhBQBGYC5KgoLsN6DMKxwObcigSHbMDbGe5Hw/yxAI1stU2hNN1nzm3/R6fXxoCpL0PCXmOJLSRsjjy+OCwIuKJdJWmkq+4FIluQWJwT3gSFE+gYW6UMjzXhZAUIsbNw4ifU+uzq1xqXVohbsSn70MeKKwKmkaAGQVUMl/YejyR9/ppGhnyOJKqICkRqvh/9G8L4jS5m/gUwttu5zR0Lvm04HygRsWUO9oOlHVPy11gMLF2VK/WQn1twz0HQadYDwDaqy8K9eNPF n634264@nrkmci69380.felles.ds.nrk.no
# -*- encoding: UTF-8 -*-
import qi as qi
import sys
import argparse
class RobotName(object):
def __init__(self, app):
"""
Initialisation of qi framework and event detection.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour
{
public float moveForce = 14f;
public float maxSpeed = 25f;
public float jumpForce = 0.5f;
[HideInInspector]
{
"short_name": "My PWA",
"name": "My first Progressive Web App",
"description": "My first Progressive Web App is a very simple starter app",
"start_url": "./?utm_source=web_app_manifest",
using System;
using System.Linq;
namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
{
var bestProduct = 0L;
GET /
POST /current-records/_search
{
"query": {
"match": {
"object.title.edgeCompletion": "morgen"
}
},
"_source": "object.title"
#!/bin/bash
PORT=$(( 8000 + ( RANDOM % 1000 ) + 1 ))
echo http://localhost:$PORT
python -m SimpleHTTPServer $PORT