The program below can take one or more plain text files as input. It works with python2 and python3.
Let's say we have two files that may contain email addresses:
- file_a.txt
foo bar
ok [email protected] sup
[email protected],wyd
hello world!
'use strict'; | |
const { Contract } = require('fabric-contract-api'); | |
class MyContract extends Contract { | |
//add a member along with their email, name, address, and number | |
async addMember(ctx, email, name, address, phoneNumber) { | |
let member = { | |
name: name, | |
address: address, |
;Division | |
ansprint macro res | |
mov dl,res | |
add dl,30h | |
mov ah,02h | |
int 21h | |
endm | |
data segment |
''' | |
Implementation of 2 Phase Commit as explained at Wikipedia: | |
https://en.wikipedia.org/wiki/Two-phase_commit_protocol | |
''' | |
import random, logging, time | |
from threading import Thread, Semaphore, Lock | |
_fmt = '%(user)s:%(levelname)s >>> %(message)s' | |
logging.basicConfig(format=_fmt) | |
LOG = logging.getLogger(__name__) |
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
linkedin-query.py | |
Created by Thomas Cabrol on 2012-12-03. | |
Customised by Rik Van Bruggen | |
Copyright (c) 2012 dataiku. All rights reserved. | |
Building the LinkedIn Graph |
The program below can take one or more plain text files as input. It works with python2 and python3.
Let's say we have two files that may contain email addresses:
foo bar
ok [email protected] sup
[email protected],wyd
hello world!
;program to compare two strings using string instructions | |
INCLUDE io.h | |
Cr EQU 0ah | |
Lf EQU 0dh | |
data SEGMENT | |
p_str1 DB Cr, Lf, 'Enter 1st string: ',0 | |
p_str2 DB Cr, Lf, 'Enter 2nd string: ',0 | |
p_not DB Cr, Lf, 'The strings are not same',0 |
;program to compare two strings without using string instructions | |
INCLUDE io.h | |
Cr EQU 0ah | |
Lf EQU 0dh | |
data SEGMENT | |
p_str1 DB Cr, Lf, 'Enter 1st string: ',0 | |
p_str2 DB Cr, Lf, 'Enter 2nd string: ',0 |