User contributions for 200.201.163.25

For 200.201.163.25 talk block log logs
Jump to navigation Jump to search
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽

25 August 2022

  • 19:0619:06, 25 August 2022 diff hist +319 N Node.js: STDINCreated page with "<pre> var stdin = process.openStdin(); stdin.addListener("data", function(d) { // note: d is an object, and when converted to a string it will // end with a linefeed. so we (rather crudely) account for that // with toString() and then trim() console.log("you entered: [" + d.toString().trim() + "]"); }); </pre>" current
  • 18:0818:08, 25 August 2022 diff hist +859 N Python: PDF Image ExtractorCreated page with "<pre> import os import sys import logging import subprocess from PIL import Image, ImageSequence def extract_pdf_images(filepath, directory, ghostscript_path): cwd = r'.' cmd = r'{gs_path} -o "{directory}\p-%03d-000.png" -sDEVICE=png16m -dNOSAFER -r300 {filepath}'.format(gs_path=ghostscript_path, directory=directory, filepath=filepath) subprocess.check_output(cmd, cwd=cwd, shell=True) #def extract_tif_images(filepath, directory): # im = Image...." current

25 May 2022

  • 01:0801:08, 25 May 2022 diff hist +407 N Python: Dictonary ObjectCreated page with "<pre> def obj_dic(d): top = type('new', (object,), d) seqs = tuple, list, set, frozenset for i, j in d.items(): if isinstance(j, dict): setattr(top, i, obj_dic(j)) elif isinstance(j, seqs): setattr(top, i, type(j)(obj_dic(sj) if isinstance(sj, dict) else sj for sj in j)) else: setattr(top, i, j) return top </pre>" current

27 December 2021

  • 18:2818:28, 27 December 2021 diff hist +506 N Python: OpenCV Pepper and Salt NoiseCreated page with "<pre> PYTHON OPENCV PEPPER AND SALT NOISE row,col,ch = crop_img.shape p = 0.5 a = 0.009 noisy = crop_img.copy() # Salt mode num_salt = np.ceil(a * crop_img.size * p) coords = [np.random.randint(0, i - 1, int(num_salt)) for i in crop_img.shape] noisy[coords] = 1 # Pepper mode num_pepper = np.ceil(a * crop_img.size * (1. - p)) coords = [np.random.randint(0, i - 1, int(num_pepper)) for i in crop_img.shape] noisy[coords] = 0 median_blur= cv2.medianBlur(noisy, 3) display..." current

25 October 2021

  • 02:0502:05, 25 October 2021 diff hist +919 N CS: MyExtraCreated page with "Add reference to Attachmate EXTRA! 7.1 Object Library (Reference Manager -> COM) <pre> public class MyExtra { private EXTRA.ExtraSystem m_ExtraSystem; private..." current

19 October 2021

  • 23:5423:54, 19 October 2021 diff hist +2,246 N Python: Flask BaseCreated page with "app.py <pre> from flask import Flask, render_template app = Flask(__name__) @app.route('/') def hello(): return render_template("home.html", message="Hello Flask!") @..." current