Skip to content

Instantly share code, notes, and snippets.

View J-Arji's full-sized avatar
🏠
Working from home

Javad Arji J-Arji

🏠
Working from home
View GitHub Profile
@klalle
klalle / nRF2401_Transmitter.c
Last active October 12, 2022 11:30
This is a simple code that waits for the USART interrupt, that receives the payload from the USART and then calls the send-function to broadcast the data to listening nRFs.
/*
* RF_Tranceiver.c
*
* Created: 2012-08-10 15:24:35
* Author: Kalle
* Atmega88
*/
#include <avr/io.h>
#include <stdio.h>
@glaurent
glaurent / gist:aad82c4185f3c92f21dc
Created December 11, 2014 22:10
adding a video in a SceneKit scene using a SpriteKit SKVideoNode
let spriteKitScene = SKScene(size: CGSize(width: 1276.0 / 2.0, height: 712.0 / 2.0))
var videoSpriteKitNode:SKVideoNode?
let videoNode = SCNNode()
videoNode.geometry = SCNPlane(width: videoNodeWidth, height: videoNodeHeight)
// using SpriteKit scene with videonode inside
//
spriteKitScene.scaleMode = .AspectFit