start new:
tmux
start new with session name:
tmux new -s myname
| readnum macro num | |
| push ax | |
| push dx ;pushing ax,dx in stack to keep the previous values | |
| ;protected | |
| mov ah, 01h ;read character function | |
| int 21h ;execute the function | |
| printstring macro msg | |
| mov ah, 09h | |
| mov dx, offset msg | |
| int 21h | |
| endm | |
| readnum macro num | |
| { | |
| // http://eslint.org/docs/rules/ | |
| "ecmaFeatures": { | |
| "binaryLiterals": false, // enable binary literals | |
| "blockBindings": false, // enable let and const (aka block bindings) | |
| "defaultParams": false, // enable default function parameters | |
| "forOf": false, // enable for-of loops | |
| "generators": false, // enable generators | |
| "objectLiteralComputedProperties": false, // enable computed object literal property names |
| // Update: Hey Folks - I've got a full Gulpfile with everything else over at https://github.com/wesbos/React-For-Beginners-Starter-Files | |
| var source = require('vinyl-source-stream'); | |
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); | |
| var browserify = require('browserify'); | |
| var reactify = require('reactify'); | |
| var babelify = require('babelify'); | |
| var watchify = require('watchify'); | |
| var notify = require('gulp-notify'); |
| .model small | |
| .stack 100h | |
| .data | |
| countOne db ? | |
| countZero db ? | |
| nln db 0ah,0dh,'$' | |
| msg1 db 'Number of Ones: $' | |
| msg2 db 0ah,0dh,'Number of Twos: $' | |
| .code | |
| main proc |
| .model small | |
| .stack 100h | |
| .data | |
| str1 db 'Ones :$' | |
| str2 db ' zero :$' | |
| ones db '0' | |
| zeros db '0' | |
| .code | |
| main proc |
| function mapValues(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| result[key] = fn(obj[key], key); | |
| return result; | |
| }, {}); | |
| } | |
| function pick(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| if (fn(obj[key])) { |
| # | |
| # STL GDB evaluators/views/utilities - 1.03 | |
| # | |
| # The new GDB commands: | |
| # are entirely non instrumental | |
| # do not depend on any "inline"(s) - e.g. size(), [], etc | |
| # are extremely tolerant to debugger settings | |
| # | |
| # This file should be "included" in .gdbinit as following: | |
| # source stl-views.gdb or just paste it into your .gdbinit file |