Skip to content

Instantly share code, notes, and snippets.

@voluntas
voluntas / sora_labo.rst
Last active July 9, 2023 13:05
時雨堂 Sora Labo 開発ログ
@voluntas
voluntas / shiguredo_webrtc_sfu_log.rst
Last active April 19, 2024 12:05
時雨堂 WebRTC SFU Sora 開発ログ
struct Vec { x: float, y: float }
trait VecRhs {
fn add_to_Vec(&self, lhs: &Vec) -> Vec;
}
impl<R: VecRhs> Add<R, Vec> for Vec {
fn add(&self, rhs: &R) -> Vec {
rhs.add_to_Vec(self)
}
@lou
lou / gmap-fullscreen.js
Created January 2, 2012 12:10
Google map Fullscreen with jQuery
$(function() {
var map = new google.maps.Map(document.getElementById("map_canvas"), {});
var newyork = new google.maps.LatLng(40.69847032728747, -73.9514422416687);
var googleMapWidth = $("#map_canvas").css('width');
var googleMapHeight = $("#map_canvas").css('height');
map.setCenter(newyork);
$('#enter-full-screen').click(function(){