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> |
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> |
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. |
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() | |
{ |
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) |
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 |
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]; |
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; |
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
/* example input-output | |
input : | |
abc | |
expected output : | |
1 => | |
2 => a | |
3 => b | |
4 => ab |
OlderNewer