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 <iostream> | |
#include <math.h> | |
#include <fcntl.h> | |
#include <sys/stat.h> | |
#include <unistd.h> | |
using namespace std; | |
char fd_path[] = {"./.temperature"}; |
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 <iostream> | |
#include <pthread.h> | |
#include <unistd.h> | |
using namespace std; | |
int a=0; | |
int b=0; | |
bool token=true; |
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 <signal.h> | |
#include <sys/stat.h> | |
#include <sys/types.h> | |
#include <sys/wait.h> | |
#include <unistd.h> | |
char path[] = {"./fuffa"}; |
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 <iostream> | |
#include <string.h> | |
#include <sys/wait.h> | |
#include <unistd.h> | |
using namespace std; | |
int main() { | |
// Pipe in cui padre trasmette | |
int pipe_parent[2]; |
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
// Zhenxiang Chen, Mattia Delorenzi, Andrea Inselvini | |
#include <iostream> | |
#include <fstream> | |
#include <unistd.h> | |
#define TIMEOUT 100000 | |
using namespace std; |
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
package com.acer.incallui; | |
import android.app.WallpaperManager; | |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.Canvas; | |
import android.graphics.Paint; | |
import android.graphics.Paint.Style; | |
import android.graphics.Rect; | |
import android.graphics.drawable.BitmapDrawable; |
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
const http = require('http'), | |
server = http.createServer(); | |
var urlExists = require('url-exists'); | |
const files_url = "https://mirrors.dotsrc.org/osdn/storage/g/r/re/revengeos"; | |
const json_file = "https://raw.githubusercontent.com/RevengeOS/ota/master/json.php" | |
const args = process.argv.slice(2); | |
var full_url; | |
server.on('request', (request, response) => { |
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 <iostream> | |
#include <fstream> | |
using namespace std; | |
struct alunno { | |
char nome[50]; | |
char materia[50]; | |
int voto; | |
}; |
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
from ftplib import FTP | |
from datetime import datetime | |
import json | |
import os | |
import re | |
from time import sleep | |
# Global defs | |
ftp_url = "ftp.halifax.rwth-aachen.de" | |
work_path = "osdn/storage/g/r/re/revengeos" |
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
#!/bin/bash | |
gpio=/sys/class/gpio | |
pins=(0 14 18 24) | |
pin_to_use=${pins[$1]} | |
if [ pin_to_use != 0 ]; then | |
echo "Blinking the LED on pin" $pin_to_use | |
echo $pin_to_use > $gpio/unexport | |
echo $pin_to_use > $gpio/export | |
echo "out" > $gpio/gpio$pin_to_use/direction | |
echo "1" > $gpio/gpio$pin_to_use/value |