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 <allegro.h> | |
#include <stdio.h> | |
#define V_DIST 100 | |
#define FAR_Z 1000 | |
#define NEAR_Z 20 | |
typedef struct VECTOR3D_TYP { | |
union { |
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
; PORTC is connected to D4:D7 as C0:C3 | |
; PORTA is connected to RS/RW/E as A0/A1/A2 | |
#include p16f690.inc | |
PROCESSOR p16f690 | |
__CONFIG _INTRC_OSC_NOCLKOUT&_FCMEN_ON&_IESO_ON&_BOR_ON&_CPD_OFF&_CP_OFF&_MCLRE_OFF&_PWRTE_OFF&_WDT_OFF | |
RS EQU 5 | |
RW EQU 1 | |
E EQU 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
temp EQU 0x20 | |
movlw HIGH Text1 | |
movwf PCLATH | |
movlw LOW Text1 | |
movwf temp | |
call LCD_String | |
movlw HIGH Text2 |
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 p16f690.inc | |
PROCESSOR P16F690 | |
__CONFIG _INTRC_OSC_NOCLKOUT&_FCMEN_ON&_IESO_ON&_BOR_ON&_CPD_OFF&_CP_OFF&_MCLRE_OFF&_PWRTE_OFF&_WDT_OFF | |
ERRORLEVEL -302 ; SUPRESS BANK WARNING. | |
RADIX DEC | |
CBLOCK 0x20 ; RAM AREA | |
PULSE_TEMP ; PULSE FREQUENCY ALTERNATING FLAG |
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 <math.h> | |
#include <SDL/SDL.h> | |
#define LOCK_SURFACE(A) if (SDL_MUSTLOCK(A)) if (SDL_LockSurface(A) < 0) { printf("%s\n", SDL_GetError()); exit(1); } | |
#define UNLOCK_SURFACE(A) if (SDL_MUSTLOCK(A)) SDL_UnlockSurface(A); | |
#define ANGLE(A) (A) * M_PI / 180. | |
#define W 320 |
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/sh | |
tmp=${TMPDIR-/tmp}/pacman-disowned-$UID-$$ | |
db=$tmp/db | |
fs=$tmp/fs | |
mkdir "$tmp" | |
trap 'rm -rf "$tmp"' EXIT | |
pacman -Qlq | sort -u > "$db" |
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 <time.h> | |
#define N 1000 | |
#define R 125 | |
int A[N][N], B[N][N], C[N][N]; | |
void init_rand_matrix(int M[N][N]) |
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
/** | |
* config.h | |
* ALT + F11 | F12 | |
*/ | |
static const char *upvol[] = { "amixer", "set", "Master", "3+", NULL }; | |
static const char *downvol[] = { "amixer", "set", "Master", "3-", NULL }; | |
static const char *mutevol[] = { "amixer", "set", "Master", "toggle", NULL }; | |
static Key keys[] = { |
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
public class Deepcopy { | |
public static Object deepClone(Object value) throws IOException, ClassNotFoundException{ | |
ByteArrayOutputStream baos = new ByteArrayOutputStream(); | |
ObjectOutputStream oos = new ObjectOutputStream(baos); | |
oos.writeObject(value); | |
ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); | |
ObjectInputStream ois = new ObjectInputStream(bais); | |
Object deepCopy = ois.readObject(); | |
return deepCopy; | |
} |
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
$TTL 86400 | |
codedumpster.com. IN SOA ns1.codedumpster.com. root.codedumpster.com. ( | |
1 ; Serial | |
604800 ; Refresh | |
86400 ; Retry | |
2419200 ; Expire | |
86400 ) ; Negative Cache TTL | |
; | |
IN NS ns1 |