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
<?php | |
/** | |
* Essentially dumps data from given table, giving no clue as that the schema is | |
* Useful in conjunction with cron/wget database backups(my clients do that) | |
* Forces UTF-8 everywhere. | |
* | |
* @author Henrietta <piotr.maslanka@henrietta.com.pl> | |
* @license public domain | |
*/ | |
/** |
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
IDENTIFICATION DIVISION. | |
PROGRAM-ID ELOGRECO. | |
ENVIRONMENT DIVISION. | |
INPUT-OUTPUT SECTION. | |
FILE-CONTROL. | |
SELECT FD-PLOTOUT ASSIGN PLOTOUT | |
ORGANIZATION IS SEQUENTIAL. | |
DATA DIVISION. | |
FILE SECTION. | |
FD FD-PLOTOUT. |
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
# coding=UTF-8 | |
from __future__ import division | |
from satella.channels.sockets import Socket, ServerSocket, SelectHandlingLayer | |
import time, random | |
PACKS_AT_ONCE = (3, 4, 5, 6) | |
class Operator(SelectHandlingLayer): | |
def on_iteration(self): | |
for channel in self.channels: |
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
""" | |
A simple process to measure CPU usage of a process during specified time | |
Requires at least Linux 2.6. | |
Care with measurement on tickless kernels! | |
""" | |
from __future__ import division | |
import sys, time | |
if len(sys.argv) != 4: |
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
# coding=UTF-8 | |
from __future__ import division | |
import json, sys, os.path | |
import datetime | |
import sqlite3 | |
import BaseHTTPServer, cgi | |
import time | |
import hashlib | |
PRESENTPATH = u'''<!DOCTYPE html> |
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 <omp.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <math.h> | |
#include <time.h> | |
#include <mpi.h> | |
#include <string.h> | |
#define SPRNG_SIMPLE 1 | |
#define SEED 985456376 |
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
#define F_CPU 1843200 | |
#include "avr/interrupt.h" | |
#include "avr/wdt.h" | |
#include "pins.h" | |
#include "uart.h" | |
#define SIGNAL_LENGTH 4 | |
#define ALARM_LENGTH 0x04EC | |
#define VB_ARMED 0x7F |
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
interpreter: | |
cmp dx, bp | |
jz cmdli | |
mov al, [ds:bp] | |
cmp al, '>' | |
jz incDP | |
cmp al, '<' | |
jz decDP | |
cmp al, '+' |
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
program BarnsleyFullHD; | |
{$mode objfpc}{$H+} | |
uses | |
Classes; { for TThread } | |
type | |
TXY = object | |
X, Y: double; | |
procedure transform(); |
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 __future__ import division | |
from random import random | |
from Swiat import Swiat | |
import pygame | |
import math | |
def grawitacja(x,y,swiat): | |
if x.masa > 499999: | |
print 'Transport sighted: '+str(x.x)+ ' '+str(x.y) |
OlderNewer