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
window.onload= function() | |
{ | |
createContainer(); | |
createObject(1); | |
} | |
var dragObj = null; | |
let width=window.innerWidth; | |
let height=window.innerHeight; |
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
;------------------------------------------------------------------------------------------------------------------------------------------------------- | |
data segment ; data segment. Keyword db means define byte. You can also define word (dw) | |
iNum dw 2 dup(?) ;Reserve a byte for the decoded user input ;Define input number | |
tStr db 'Enter a perfect (unsigned 16-bit) square:',10,'$' ;Prompt for user | |
oStr db 'The result is:',10,'$' ;Output prompt | |
iBuff db 16, 17 dup(?) ;User input string ;Define input buffer | |
ten db 10 ;For readability | |
data ends | |
; stack segment |
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
;------------------------------------------------------------------------------------------------------------------------------------------------------- | |
data segment ; data segment. Keyword db means define byte. You can also define word (dw) | |
iNum db 1 dup(?) ;Reserve a byte for the decoded user input ;Define input number | |
tStr db 'Enter a perfect (unsigned 8-bit) square:',10,'$' ;Prompt for user | |
oStr db 'The result is:',10,'$' ;Output prompt | |
iBuff db 4, 5 dup(?) ;User input string ;Define input buffer | |
ten db 10 ;For readability | |
data ends | |
; stack segment |
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
;------------------------------------------------------------------------------------------------------------------------------------------------------- | |
data segment ; data segment. Keyword db means define byte. You can also define word (dw) | |
iNum dw 2 dup(?) ;Reserve a byte for the decoded user input ;Define input number | |
tStr db 'Enter a perfect (unsigned 8-bit) square:',10,'$' ;Prompt for user | |
oStr db 'The result is:',10,'$' ;Output prompt | |
iBuff db 4, 5 dup(?) ;User input string ;Define input buffer | |
ten db 10 ;For readability | |
data ends | |
; stack segment |
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
;------------------------------------------------------------------------------------------------------------------------------------------------------- | |
.186 ;You may need to uncomment this to get some of the instructions working (e.g. shl, dest, count) | |
;------------------------------------------------------------------------------------------------------------------------------------------------------- | |
data segment ; data segment. Keyword db means define byte. You can also define word (dw) | |
n dw 5 ;nth fib. number | |
firstS db 'The Fibonacci number of order $' ;First part of output string | |
secS db ' is $' ;Second part of output string | |
newL db 0ah,'$' ;New line character | |
temp db 1 dup(?),'$' ;Used for output | |
data ends |
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> | |
<title></title> | |
<meta charset="UTF-8"> | |
<script> | |
var xhr; | |
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
;------------------------------------------------------------------------------------------------------------------------------------------------------- | |
data segment ; data segment. Keyword db means define byte. You can also define word (dw) | |
DIM1 equ 5 ; define array size | |
A db DIM1 dup(?) ; initialize array | |
outStr db 'Enter Degree of Polynomial: $' ; For output | |
newL db 0ah,'$' ; newline For output | |
outPtr db 'Enter coefficient of x^?: $' ; For output | |
n dw 0 ; Stores the degree of polynomial | |
lastin dw 0 ; Stores the last coefficient | |
byte1 equ 23 ; Number of bytes to replace '?' in outPtr |
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 express = require('express'); | |
var app = express(); | |
var handlebars = require('express-handlebars').create({ defaultLayout: 'main'}); | |
var bodyParse = require('body-parser'); | |
var urlencodedParser=bodyParse.urlencoded({extended:false}); | |
app.engine('handlebars',handlebars.engine); | |
app.set('view engine', 'handlebars'); | |
app.set('port', process.env.PORT || 3018); |
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 host="somehost"; | |
var request = require('request'); | |
var myMap = new Map(); | |
for(var i = 2 ; i<process.argv.length; i++){ | |
let orig = process.argv[i]; | |
//console.log(orig); | |
let r = request.get(host+process.argv[i], function (err, res, body) { | |
//console.log(r.uri.href); | |
rs = r.uri.href.split("/"); |
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 express = require('express'); | |
//var logger = require('morgan'); | |
var cookieParser = require('cookie-parser') | |
var app = express(); | |
//Valid color Names | |
var CSS = ["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgrey","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","ligh |
OlderNewer