This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| createConnection, | |
| getConnection, | |
| getManager, | |
| EntitySchema | |
| } from "typeorm"; | |
| import Models from "./models"; | |
| const Adapter = (options = {}) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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::*; |