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 useRegularFetchWithInterval from "./useRegularFetchWithInterval"; | |
| export async function loader() { | |
| // Get data | |
| return data; | |
| } | |
| export default function MyRoute() { | |
| const loaderData = useLoaderData(); | |
| const [liveData] = useRegularFetchWithInterval({ route: `/myroute?_data=routes%2Fmyroute`, intervalMs: 3000, initialData: loaderData }); |
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
| /* | |
| This has been generated by the overpass-turbo wizard. | |
| The original search was: | |
| “"generator:source"="solar"” | |
| */ | |
| [out:json][timeout:25]; | |
| // gather results | |
| ( | |
| // query part for: “"generator:source"=solar” | |
| node["generator:source"="solar"](52.89114365884478,-1.198883056640625,52.92080592941056,-1.1593151092529297); |
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
| # propietary nvidia drivers | |
| sudo add-apt-repository ppa:graphics-drivers/ppa | |
| sudo apt update | |
| sudo apt upgrade | |
| sudo ubuntu-drivers autoinstall | |
| restart | |
| # cudatoolkit and rest of env installed with Anaconda | |
| https://www.anaconda.com/distribution/#linux run install sh | |
| conda create --name tensorflowenv | |
| conda activate tensorflowenv |
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
| test |
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
| background-color: white; | |
| border: 1px solid; | |
| color: black; | |
| outline: 0; | |
| padding: 8px 7px; | |
| font-size: 0.857em; | |
| height: 35px; | |
| -webkit-appearance: none; | |
| -webkit-box-shadow: 0 1px 2px #DDD inset; | |
| -moz-box-shadow: 0 1px 2px #DDD inset; |
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
| ;(function(exports, undefined) { | |
| })((typeof exports !== 'undefined' ? exports : this['Thing'])); | |
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
| var sys = require('sys'), | |
| spawn = require('child_process').spawn, | |
| http = require('http'); | |
| http.createServer(function (req, res) { | |
| var ffmpeg = spawn('ffmpeg', ['-i /path/to/file', '-f mp3', '-']); | |
| res.writeHead(200, {'Content-Type': 'audio/mpeg'}); | |
| ffmpeg.stdout.addListener('data', function (d) { |
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
| The ft.com restricts users to only 3 articles a day, but if you come from Google they let you read the whole article. This bookmarklet does a google search for the ft.com article you're currently on so you can click the google link and read it! | |
| javascript:location="http://www.google.com/search?q="+encodeURIComponent("site:ft.com \""+document.body.getElementsByTagName("h2")[2].innerHTML+"\"") |
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
| # This module allows you to prepend a verion prefix to your Sinatra URLs | |
| # Example: | |
| # | |
| # require 'rubygems' | |
| # require 'sinatra/base' | |
| # | |
| # class App < Sinatra::Base | |
| # register Versioned | |
| # | |
| # set :version, 'v1' |