I hereby claim:
- I am hosseinamin on github.
- I am hosseinamin (https://keybase.io/hosseinamin) on keybase.
- I have a public key ASAg6Z8lb-F-olCHGD7w0yAfj3XGeJsLnd7mWJ7SO4Z1Lgo
To claim this, I am signing this object:
| # file2var does generate code to have files as strings in languages like javascript, c | |
| # https://github.com/aminbros/file2var | |
| file2var txt2cstr -p js -o ../src/programs.js *.glsl | |
| # output file is js file containing all .glsl files named with their filename |
| /** | |
| * I think this is correct implementation of promise.finally, | |
| * Following what synchronized try/catch/finally does | |
| */ | |
| if(!Promise.prototype.finally) { | |
| Promise.prototype.finally = function(f) { | |
| var ret, thr, hasthr = false; | |
| return this.then(function(a){ ret = a; return f(); }) | |
| .then(function(){ return ret; }) | |
| .catch(function(a) { hasthr = true; thr = a; return f(); }) |
| #!/bin/env /usr/bin/python3 | |
| from sys import argv | |
| from os import urandom | |
| from math import floor | |
| def mkpasswd(n, chars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()-=_+{}|\/?,<>"): | |
| ret = "" | |
| charsn=len(chars) | |
| while n > 0: |
I hereby claim:
To claim this, I am signing this object:
| // There's an issue with IE, instead of Node having prototype contains, | |
| // HTMLElement has it. Simple fix is to set the function for Node too | |
| if (typeof Node != 'undefined' && typeof HTMLElement != 'undefined' && | |
| !Node.prototype.contains && HTMLElement.prototype.contains) { | |
| Node.prototype.contains = HTMLElement.prototype.contains; | |
| } |
I intend to gather a list of bluetooth internal/usb adapters that support or do not support advertising Gatt services.
These Devices may support advertising on bluetooth/ble. But the Windows 10 GattServiceProvider do support advertising on it.
With this error, The device does not support the command feature. WinRT information: The Bluetooth adapter does not support peripheral role.
Test project on Vistual Studio: https://github.com/hosseinamin/UWPBleGattAdvTest
| #! /usr/bin/env python | |
| # Standard library imports. | |
| from SocketServer import ThreadingMixIn | |
| import BaseHTTPServer | |
| import SimpleHTTPServer | |
| import sys | |
| import json | |
| import os | |
| from os.path import (join, exists, dirname, abspath, isabs, sep, walk, splitext, |
| # this reads grid 3 files. Finds image in one grid page and same one in another and replaces it with a new one | |
| import zipfile | |
| from google_images_download import google_images_download | |
| import re | |
| import os, shutil | |
| from glob import glob | |
| from sys import exit, argv, exc_info, stderr | |
| from PyQt5.QtCore import pyqtSignal, Qt |
| /* | |
| There are two functions in main.js for letter or word predition, You can modify it with _tree_dynamic_nodes_module_map variable | |
| */ | |
| // html/js/main.js L2063 | |
| var _tree_dynamic_nodes_module_map = { | |
| 'trees-switcher': { | |
| render: _trees_switcher_dynamic_nodes, | |
| }, | |
| 'spell-word-prediction': { |