Skip to content

Instantly share code, notes, and snippets.

View espeon's full-sized avatar
:octocat:
octo cat

natalie espeon

:octocat:
octo cat
View GitHub Profile
using Microsoft.Xna.Framework;
using Nez;
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Nez.Textures;
using Nez.Sprites;
import {
createConnection,
getConnection,
getManager,
EntitySchema
} from "typeorm";
import Models from "./models";
const Adapter = (options = {}) => {
use dotenv;
use warp::Filter;
#[tokio::main]
async fn main() {
dotenv::dotenv().ok();
let hello = warp::any().map(|| {
"Hello from warp!"
});
let hello_from_warp = warp::path!("img" / u32 / u32).map(|x,y| {
import AppBar from '../components/appbar'
import Card from '../components/card'
import Link from 'next/link'
import fetch from 'isomorphic-unfetch'
import { makeStyles } from '@material-ui/core/styles'
import Grid from '@material-ui/core/Grid'
import Paper from '@material-ui/core/Paper'
function fetcher(url) {
import React, { Component } from 'react'
import videojs from 'video.js'
class Player extends Component {
componentDidMount() {
console.log('v.js mounted')
// instantiate Video.js
this.player = videojs(this.videoNode, this.props, function onPlayerReady() {
console.log('onPlayerReady', this)
})
{
"data": [
{
"id": 5430,
"title": "Sintel",
"english_title": "Sintel",
"episode_num": "1",
"type": "sub",
"created_at": "2020-04-11T19:02:08.000000Z",
"thumbnail": "https:\/\/durian.blender.org\/wp-content\/content\/download_youtube.jpg",
[
{
"id": "Jm5iTsZIBp9cWQX8",
"provider": "SintelEngine",
"file": "http://www.peach.themazzone.com/durian/movies/sintel-2048-stereo.mp4",
"lang": "sub",
"type": "mp4",
"hardsub": true,
"thumbnail": "https://cdn.animeflix.io/vod-thumbnails/VIn7682wFZjvsKVR.jpg",
"resolution": "1080p"
use sqlx::SqlitePool;
#[tokio::main]
async fn main() {
let pool = SqlitePool::builder()
.max_size(1)
.build("sqlite3://todos.sqlite3")
.await
.expect("Failed to create DB pool");
const express = require("express"),
app = express(),
port = process.env.PORT || 5000;
const axios = require("axios");
const needle = require("needle");
app.get("/", (req, res) => {
res.json(
"hi"
use log::error;
use serde_json::Value;
use serenity::framework::standard::macros::command;
use serenity::framework::standard::CommandError;
use serenity::framework::standard::{Args, CommandResult};
use serenity::model::prelude::*;
use serenity::prelude::*;