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 'rw32.inc' ; nacteni knihovny rw32.inc | |
[segment .data use32] ; definice zacatku datoveho segmentu | |
; testovaci retezec | |
sArray1 dd 9000001,50000,-20432,98765 | |
length dd 4 | |
sArray2 times 100 dd 0 | |
[segment .code use32] ; definice zacatku kodoveho segementu |
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
require "find" | |
require "i18n" | |
I18n.enforce_available_locales = false | |
Find.find(".").each do |f| | |
if FileTest.directory?(f) | |
next | |
else | |
puts "#{f} -> #{I18n.transliterate(f)}" |
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
adam@adam-nb:~/Dropbox/school/ios/proj1$ for f in `ls *.o`; do echo "---${f}";objdump -d -j .text ${f} | grep -E "(<.*>:)|(callq)"; done | |
---print_recursive.o | |
0000000000000000 <print_fib_upto>: | |
15: e8 00 00 00 00 callq 1a <print_fib_upto+0x1a> | |
28: e8 00 00 00 00 callq 2d <print_fib_upto+0x2d> | |
3f: e8 00 00 00 00 callq 44 <print_fib_upto+0x44> | |
55: e8 00 00 00 00 callq 5a <print_fib_upto+0x5a> | |
64: e8 00 00 00 00 callq 69 <print_fib_upto+0x69> | |
7a: e8 00 00 00 00 callq 7f <print_fib_upto+0x7f> | |
0000000000000081 <print_ackermann>: |
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 <msp430.h> | |
#include <stdbool.h> | |
#include <stdint.h> | |
#include "74HC595.h" | |
// Ticks for second, DO NOT CHANGE | |
#define SEC_CLOCK 512 | |
//#define DATA_PIN BIT5 | |
//#define CLOCK_PIN BIT3 |
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
CC=gcc | |
CXX=clang++ | |
RM=rm -f | |
CPPFLAGS=-ffast-math -Ofast -std=c++11 -pedantic -Wall | |
#LDFLAGS=-Bstatic | |
#LDLIBS=-Lboost_random -lpthread | |
BIN=binarka | |
SRCS=zdrojak1.cc zdrojak2.cc system.cc binarka.cc | |
OBJS=$(subst .cc,.o,$(SRCS)) |
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
; | |
; Podpurna knihovna funkci rw32_clib.inc pro predmet IAS. | |
; Pro svou cinnost vyuziva standardni knihovny jazyka C. | |
; Lze ji pouzit v OS Windows nebo Linux. | |
; Pro preklad je potreba program NASM. | |
; Pro sestaveni ve Windows je potreba napriklad ALINK, v Linuxu GCC | |
; | |
; Verze: 2012.11.09 | |
; Autor: Filip Orsag (orsag@fit.vutbr.cz) | |
; |
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
---------------------------------- | |
protocol: 0 | |
PPC class : WC/WC, self count: 118, other count 101 | |
PPC class : WC/HI, self count: 0, other count 0 | |
PPC class : HI/WC, self count: 0, other count 0 | |
PPC class : HI/HI, self count: 0, other count 0 | |
PPC class : WC/LO, self count: 0, other count 0 | |
PPC class : LO/WC, self count: 0, other count 0 | |
PPC class : HI/LO, self count: 0, other count 0 | |
PPC class : LO/HI, self count: 0, other count 0 |
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
-- source: http://stackoverflow.com/questions/2549718/dropping-all-user-tables-sequences-in-oracle | |
DECLARE | |
login varchar2(8); | |
BEGIN | |
-- Change value according to your username | |
login := 'XLUCAN01'; | |
-- Remove all sequences | |
FOR i IN (SELECT us.sequence_name, us.sequence_owner | |
FROM ALL_SEQUENCES us WHERE sequence_owner = LOGIN) LOOP |
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
-- drop all database objects in the schema of the current user | |
BEGIN | |
FOR rec IN ( | |
SELECT 'DROP ' || object_type || ' ' || object_name || DECODE ( object_type, 'TABLE', ' CASCADE CONSTRAINTS PURGE' ) AS v_sql | |
FROM user_objects | |
WHERE object_type IN ( 'TABLE', 'VIEW', 'PACKAGE', 'TYPE', 'PROCEDURE', 'FUNCTION', 'TRIGGER', 'SEQUENCE' ) | |
ORDER BY object_type, object_name | |
) LOOP | |
EXECUTE IMMEDIATE rec.v_sql; | |
END LOOP; |
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 <string.h> | |
static int cmp(const void *str1, const void *str2) { | |
return strcmp((char*) str1, (char*)str2); | |
} | |
int main() { | |
char mena[3][10] = {"sadfdsafv", "greqplkxn", "pwoikjhsq"}; |
OlderNewer