View reverseme_4_solution.c
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
/* | |
here is solution for reverseme #4 php challenge | |
written using C, cuz wut? cuz im boringgg at dat time | |
here is the link for mentioned challenge : http://w3.tbd.my/thread-15160-post-175788.html#pid175788 | |
byehhh... | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> |
View bitwise_hack_functions.c
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
// set of useful functions for manipulation integer in low level binary | |
// this was written when i'm started to learn C | |
// code look suck, well, this shit is from 2 years ago :) (ahh unforgotten memories) | |
// hope you can learn somethings from this code | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <stdint.h> |
View arguments_analysis.asm
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> | |
int main(int argc, char *argv[]) | |
{ | |
puts(""); // space | |
if(argc == 1) | |
{ |
View configuration.js
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
angular | |
.module('webui.services.configuration', []) | |
.constant('$name', 'Aria2 WebUI') // name used across the entire UI | |
.constant('$titlePattern', 'active: {active} - waiting: {waiting} - stopped: {stopped} — {name}') | |
.constant('$pageSize', 11) // number of downloads shown before pagination kicks in | |
.constant('$authconf', { // default authentication configuration, never fill it in case the webui is hosted in public IP as it can be compromised | |
host: 'localhost', | |
port: 6800, | |
encrypt: false, | |
auth: { // either add the token field or the user and pass field, not both. |
View promed2012-c.cpp
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 <cmath> | |
#define MAXF 999999.0 | |
#define EPSILON 0.0000000001 | |
using namespace std; | |
int main() | |
{ |
View promed2012-a.cpp
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 <cctype> | |
using namespace std; | |
int validate_input(char input[]) | |
{ | |
char bool_zul[30] = {0}, *ptr = input; | |
while(*ptr) |
View strlen.asm
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
; cara nk guna : | |
; first convert jadi obj file guna nasm -> nasm -f elf32 test.asm -F dwarf -g | |
; then kena guna linker, guna gcc mudah -> gcc test.o -o test -m32 -ggdb | |
; kemudian run ./test | |
section .text | |
global main ; must be declared for linker (ld) | |
section .data | |
msg db 'Hello, world!', 0xa, 0x0 ; our dear string |
View lis.cpp
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
/* References : | |
http://www.geeksforgeeks.org/dynamic-programming-set-3-longest-increasing-subsequence/ | |
https://www.youtube.com/watch?v=4fQJGoeW5VE */ | |
#include <iostream> | |
#include <algorithm> | |
#include <vector> | |
using namespace std; |
View lcs.c
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
/* References : | |
http://www.geeksforgeeks.org/dynamic-programming-set-4-longest-common-subsequence/ | |
https://www.ics.uci.edu/~eppstein/161/960229.html */ | |
#include <stdio.h> | |
#include <string.h> | |
#define MAX(X,Y) ((X) > (Y)) ? (X) : (Y) | |
char str[100]; |
OlderNewer