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 OpenGL.GLUT import * | |
from OpenGL.GLU import * | |
from OpenGL.GL import * | |
import sys, math | |
GAME_OBJECT = { 'width': 500, 'height': 200, 'delay': 1, 'started': False } | |
SCORE = { 'left': 0, 'right': 0 } | |
RACKET = { 'width': 10, 'height': 80, 'speed': 5 } | |
RACKET_POS = { 'left': [10.0, 50.0], 'right': [GAME_OBJECT['width'] - RACKET['width'] - 10, 50.0] } | |
BALL = { 'position': [ GAME_OBJECT['width'] / 2, GAME_OBJECT['height'] / 2 ], 'direction': [ -1.0, 0.0 ], 'size': 8, 'speed': 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
Node MergeLists(Node headA, Node headB) { | |
Node list1 = headA; | |
Node list2 = headB; | |
Node newList = null; | |
Node lastNode = null; | |
int toPut = 0; | |
while (list1 != null || list2 != null) { |
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
PRINTF MACRO TXT ; MACRO TO PRINT STRING | |
LEA DX, TXT ; LOAD THE STRING IN DX (DL) | |
MOV AH, 09H ; OUTPUT MODE FOR STRING | |
INT 21H ; PRINT THE STRING | |
ENDM | |
SCANF MACRO NUMBER, LAB1, DONE_ENTER, NORMAL_NUM, HEX_NUM, SKIP_HEX ; MACRO TO READ NUMBER | |
MOV CX, 10H ; PUT 16D TO CX |
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 <stdlib.h> | |
using namespace std; | |
class Node { | |
public: | |
Node *next; | |
int data; |
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
//////////////////// | |
// Thread pthread // | |
//////////////////// | |
/** | |
* Define a thread | |
*/ | |
pthread_t thread; | |
/** | |
* Create a thread | |
* if( pthread_create != 0) return err; |
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
//////////////// | |
// Semaphores // | |
//////////////// | |
/** | |
* Define semaphores | |
*/ | |
sem_t a, b, 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
var nw = require('nw.gui'); | |
var win = nw.Window.get(); | |
$(function() { | |
$('#prntbtn').click(function() { | |
$('.prnthide').hide(); | |
window.print(); | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Orient Logistics - English Invoice</title> | |
<!-- Bootstrap CSS --> | |
<link href="assets/bootstrap.min.css" rel="stylesheet"> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Orient Logistics - Arabic Invoice</title> | |
<!-- Bootstrap CSS --> | |
<link href="assets/bootstrap.min.css" rel="stylesheet"> |