Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
// Implementation of Sebastian Madgwick's "...efficient orientation filter for... inertial/magnetic sensor arrays" | |
// (see http://www.x-io.co.uk/category/open-source/ for examples and more details) | |
// which fuses acceleration, rotation rate, and magnetic moments to produce a quaternion-based estimate of absolute | |
// device orientation -- which can be converted to yaw, pitch, and roll. Useful for stabilizing quadcopters, etc. | |
// The performance of the orientation filter is at least as good as conventional Kalman-based filtering algorithms | |
// but is much less computationally intensive---it can be performed on a 3.3 V Pro Mini operating at 8 MHz! | |
void MadgwickQuaternionUpdate(float ax, float ay, float az, float gx, float gy, float gz, float mx, float my, float mz) | |
{ | |
float q1 = q[0], q2 = q[1], q3 = q[2], q4 = q[3]; // short name local variable for readability |
HIDDevice - Opened | |
...............................................................................| | |
...............................................................................\ | |
...............................................................................- | |
...............................................................................| | |
...............................................................................| | |
...............................................................................\ | |
................................................................................ | |
................................................................................ | |
................................................................................ |
2b19acb1ac85c20eb4d648619b7c5a9f9a6eef22 | |
GoblinDefenders/Classes/Arena.cpp | 10 +- | |
GoblinDefenders/Classes/ArenaInfo.h | 1 + | |
GoblinDefenders/Classes/GameTypedef.h | 4 +- | |
GoblinDefenders/Classes/Helper.cpp | 9 + | |
GoblinDefenders/Classes/Helper.h | 3 + | |
GoblinDefenders/Classes/Item.cpp | 41 ++ | |
GoblinDefenders/Classes/Item.h | 10 + | |
GoblinDefenders/Classes/JSONDataManager.cpp | 8 + | |
GoblinDefenders/Classes/Market.cpp | 30 +- |
#!/bin/bash | |
echo Building Google Protobuf for Mac OS X / iOS. | |
echo Use 'tail -f build.log' to monitor progress. | |
( | |
PREFIX=`pwd`/protobuf | |
mkdir ${PREFIX} | |
mkdir ${PREFIX}/platform |
#!/usr/bin/env python | |
""" | |
An 8-bit avatar generator. | |
""" | |
from __future__ import division | |
import argparse | |
import hashlib |
#include "./mongoose/mongoose.h" | |
// url, query string | |
typedef std::function<void(const char*, const char*)> request_handler_t; | |
typedef std::map<std::string, request_handler_t> req_handlers_t; | |
req_handlers_t req_handlers; | |
static int begin_request_handler(struct mg_connection *conn) { | |
const struct mg_request_info *request_info = mg_get_request_info(conn); | |
#version 330 core | |
#extension GL_ARB_shading_language_420pack: require | |
#extension GL_ARB_separate_shader_objects: require | |
#extension GL_ARB_shader_image_load_store: require | |
#extension GL_ARB_bindless_texture: require | |
#define ENABLE_BINDLESS_TEX | |
#define FRAGMENT_SHADER 1 | |
#define ps_main main | |
#define PS_FST 0 | |
#define PS_WMS 0 |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
<html> | |
<head> | |
<script src='/js/libs/jquery-1.7.2.min.js'></script> | |
<script src='/js/libs/underscore.js'></script> | |
<script src='/js/libs/backbone.js'></script> | |
</head> | |
<body> | |
<div class='test'>Test</div> | |
<button class='btn'>Update</button> |