this is a collection of video resources (ccc media library, youtube, etc) on computer science related topics im interested in.
feel free to contribute.
Table of Contents
<?php | |
use Silex\Application; | |
use Demo\Entity\Post; | |
use Demo\Controller\PostController; | |
$app = new Application; | |
$app['route_class'] = 'CustomRoute'; | |
$app['dispatcher']->addSubscriber(new TemplateRenderingListener($app)); |
// lmutracker.mm -- Provides lux measurement using MacBook Ambient Light Sensor | |
// | |
// clang -o lmutracker lmutracker.mm -framework IOKit -framework CoreFoundation | |
// | |
// Adaptation of code originally posted at https://bugzilla.mozilla.org/show_bug.cgi?id=793728 | |
// by Reuben Morais. Modified by Ken Keiter <ken@kenkeiter.com> to output a single *lux* value | |
// and exit, rather than repeating measurements on the sensor's arbitrary scale. | |
#include <mach/mach.h> | |
#include <math.h> |
this is a collection of video resources (ccc media library, youtube, etc) on computer science related topics im interested in.
feel free to contribute.
Table of Contents
#!/usr/bin/env python3 | |
# LiteEth UDP Inter-board stream demo. | |
# | |
# Copyright (c) 2022 Florent Kermarrec <florent@enjoy-digital.fr> | |
# SPDX-License-Identifier: BSD-2-Clause | |
# ./arty.py --build --load | |
import os |
#!/usr/bin/env python3 | |
# Raspberry Pi Pico <> LiteX SoC (on GoWin FPGA) proof of concept. | |
# | |
# Copyright (c) 2021 Florent Kermarrec <florent@enjoy-digital.fr> | |
# SPDX-License-Identifier: BSD-2-Clause | |
import os | |
import argparse |
package main | |
/* | |
#cgo CFLAGS: -x objective-c | |
#cgo LDFLAGS: -framework Cocoa | |
#import <Cocoa/Cocoa.h> | |
int | |
StartApp(void) { | |
[NSAutoreleasePool new]; |
#define _GNU_SOURCE | |
#include <errno.h> | |
#include <sched.h> | |
#include <signal.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/mount.h> | |
#include <sys/stat.h> | |
#include <sys/syscall.h> | |
#include <sys/types.h> |
import fcntl | |
import os | |
import struct | |
import subprocess | |
# Some constants used to ioctl the device file. I got them by a simple C | |
# program. | |
TUNSETIFF = 0x400454ca | |
TUNSETOWNER = TUNSETIFF + 2 |
#include <gtk/gtk.h> | |
#include <webkit/webkit.h> | |
static void destroyWindowCb(GtkWidget* widget, GtkWidget* window); | |
static gboolean closeWebViewCb(WebKitWebView* webView, GtkWidget* window); | |
static void | |
webkit_render_cb(WebKitWebView *webview, |