Skip to content

Instantly share code, notes, and snippets.

View thiagopnts's full-sized avatar
phew

Thiago Pontes thiagopnts

phew
View GitHub Profile
diff --git a/libavfilter/Makefile b/libavfilter/Makefile
index 65a831e..7b507b9 100644
--- a/libavfilter/Makefile
+++ b/libavfilter/Makefile
@@ -275,6 +275,7 @@ OBJS-$(CONFIG_TELECINE_FILTER) += vf_telecine.o
OBJS-$(CONFIG_THUMBNAIL_FILTER) += vf_thumbnail.o
OBJS-$(CONFIG_TILE_FILTER) += vf_tile.o
OBJS-$(CONFIG_TINTERLACE_FILTER) += vf_tinterlace.o
+OBJS-$(CONFIG_TRANSFORM_FILTER) += vf_transform.o
OBJS-$(CONFIG_TRANSPOSE_FILTER) += vf_transpose.o
#![feature(no_std, lang_items, start, core_intrinsics, asm)]
#![crate_type = "staticlib"]
#![no_std]
const GPIO_BASE: u32 = 0x20200000;
const TIMER_BASE: u32 = 0x20003000;
const LED_GPFSEL: isize = 4;
const LED_GPFBIT: isize = 21;
const LED_GPSET: isize = 8;
local hmac = require "resty.hmac"
local setmetatable = setmetatable
local _M = { _VERSION = '0.0.1' }
local mt = { __index = _M }
function _M.new(self, secret)
return setmetatable({_secret = secret}, mt)
end
#[derive(PartialEq, Debug)]
enum Op {
Push(i64),
Pop,
Sum,
Sumx,
UnknownOp,
}
#include <vector>
#include <iostream>
#include <string>
class Person
{
public:
Person(std::string const& name): name(name) {}
std::string getName() {
@thiagopnts
thiagopnts / bitfield.c
Created November 10, 2013 12:53
Bit field example
#include <stdio.h>
typedef struct
{
unsigned int a: 1;
unsigned int b: 1;
unsigned int c: 1;
} type;
int main()
<!doctype html>
<html ng-app>
<head>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css" media="all">
.bigger {
font-size: 4.5em;
@thiagopnts
thiagopnts / .zshrc
Last active December 19, 2015 05:39
My .zshrc file
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#ZSH_THEME="jreese"
ZSH_THEME="candy"
class BinaryHeap:
"""Binary Heap implementation"""
def __init__(self):
"""
Initializing the heap with some values
T
__/ \__
@thiagopnts
thiagopnts / test.txt
Created June 16, 2013 01:53
the description for this gist
updated file contents