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 is a tiny helper method for making JSON Http Requests | |
//if you want a more comprehensive solution, write it yourself | |
// | |
//the callback function will receive two arguments: the response, | |
// parsed as JSON, and the xhr object used inside jhr, with an added | |
// responseJSON property (you can probably guess what it is) | |
// | |
//this always sends a POST request, and the data is always serialized to JSON | |
// | |
//returns the xhr object used |
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
# Place in the folder where all the libdrc dependencies are. | |
# | |
# Remove the mac80211 module and load the patched one | |
# For this to work we need to first unload all the wifi modules, load | |
# the patched mac80211 stack and then load back the wifi modules. | |
# After this hostappd and netboot are started. One can connect to both of them via sudo screen. | |
WLAN=wlan1 # Interface Name | |
BSSID=34:af:2c:4d:a7:65 # BSSID of the WiiU pad | |
DOMAIN=AT # The regulatory domain for WiFi |
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
#!/bin/bash | |
# | |
# Convert the (broken) avi files saved by the hubsan x4 H107D remote. | |
# | |
# This gstreamer pipeline reindexes the avi file, crops the broken parts of the | |
# image to the right and left and fixes the aspect ratio. The new files are | |
# saved into the 'fixed' folder. | |
# | |
# <[email protected]> |
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
#include "mainwindow.h" | |
#include "ui_mainwindow.h" | |
#include <QVBoxLayout> | |
#include <QScrollArea> | |
#include <QSlider> | |
#include <QWidget> | |
MainWindow::MainWindow(QWidget *parent) : | |
QMainWindow(parent), |
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
-- ExportSQLite: SQLite export plugin for MySQL Workbench | |
-- Copyright (C) 2009 Thomas Henlich | |
-- | |
-- This program is free software: you can redistribute it and/or modify | |
-- it under the terms of the GNU General Public License as published by | |
-- the Free Software Foundation, either version 3 of the License, or | |
-- (at your option) any later version. | |
-- | |
-- This program is distributed in the hope that it will be useful, | |
-- but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <gst/gst.h> | |
typedef struct _AppElements { | |
GMainLoop *loop; | |
GstElement *pipeline; | |
GstElement *source; | |
GstElement *demuxer; | |
GstElement *convert; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <gst/gst.h> | |
typedef struct _AppElements { | |
GMainLoop *loop; | |
GstElement *pipeline; | |
GstElement *source; | |
GstElement *demuxer; | |
GstElement *convert; |
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
####################################################################################################################### | |
# | |
# Purpose: Bash script to fix a few elements of the default Dokku script with running correctly on Debian Wheezy | |
# Run as root | |
# Author: Shirkey <[email protected]> | |
# License: MIT | |
# Tested with: | |
# * Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2+deb7u2 x86_64 GNU/Linux | |
# * v0.2.1 of Dokku installer script | |
# |
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
# Only comment out the IO's you are using in your code | |
#set_io clk R9 | |
#set_io led1 C8 | |
#set_io led2 F7 | |
#set_io led3 K9 | |
#set_io btn1 K11 | |
#set_io btn2 P13 |
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
example.blif: example.v | |
yosys -p 'synth_ice40 -blif example.blif' example.v | |
example.txt: example.blif example.pcf | |
arachne-pnr -d 8k -p example.pcf -o example.txt example.blif | |
example.bin: example.txt | |
icepack example.txt example.bin | |
example_sram: icoprog example.bin |
OlderNewer