This file contains 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 <fcntl.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <assert.h> | |
#define BUFFER_SIZE 4096 | |
typedef struct { |
This file contains 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 <AK/ByteBuffer.h> | |
#include <AK/SharedBuffer.h> | |
#include <AK/URL.h> | |
#include <LibCore/ArgsParser.h> | |
#include <LibCore/EventLoop.h> | |
#include <LibCore/File.h> | |
#include <LibProtocol/Client.h> | |
#include <LibProtocol/Download.h> | |
#include <stdio.h> |
This file contains 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 <string.h> | |
/* | |
Frase1: Em de espeto de | |
Frase2: casa ferreiro eh pau | |
Frase3: Em casa de ferreiro espeto eh de pau | |
*/ | |
char frase1[] = "Em de espeto de"; | |
char frase2[] = "casa ferreiro eh pau"; |
This file contains 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
import os | |
import json | |
import requests as req | |
from flask import Flask, Response, redirect, request | |
app = Flask(__name__) | |
''' | |
Example of how to do a server side authorization and restricted access to Mercadoli[bre|vre] API using Flask in a sigle file. |
This file contains 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
/* | |
* IRremote: IRsendDemo - demonstrates sending IR codes with IRsend | |
* An IR LED must be connected to Arduino PWM pin 3. | |
* Version 0.1 July, 2009 | |
* Copyright 2009 Ken Shirriff | |
* http://arcfn.com | |
*/ | |
#include <IRremote.h> |
This file contains 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 <linux/input.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
int main(int argc, char **argv) | |
{ | |
int fd, i; |
This file contains 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
local target = terralib.newtarget { | |
--Triple = "x86_64-apple-darwin"; | |
Triple = "x86_64-pc-linux"; | |
-- CPU = ""; | |
Features = ""; | |
} | |
local C = terralib.includecstring([[ | |
#include <stdio.h> | |
typedef struct { |
This file contains 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
local C = terralib.includec("stdio.h") | |
local intel_x86_target = terralib.newtarget { | |
Triple = "x86_64-apple-darwin"; | |
-- CPU = ; | |
Features = "+sse,+mmx"; | |
} | |
struct Person { | |
age: int |
This file contains 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
#!/usr/bin/env python2 | |
# coding: utf-8 | |
# based on https://github.com/parallella/parallella-utils/blob/master/xtemp/xtemp.c | |
import time | |
offset = int(open("/sys/bus/iio/devices/iio:device0/in_temp0_offset").read()) | |
scale = float(open("/sys/bus/iio/devices/iio:device0/in_temp0_scale").read()) | |
raw_temp_file = open("/sys/bus/iio/devices/iio:device0/in_temp0_raw") |
This file contains 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
server { | |
listen 80; ## listen for ipv4; this line is default and implied | |
#listen [::]:80 default_server ipv6only=on; ## listen for ipv6 | |
root /usr/home/freebsd/xspager; | |
index index.lua; | |
# Make site accessible from http://ablogusingsailor.danielocl.com.br/ | |
server_name ablogusingsailor.danielocl.com.br; | |
NewerOlder