I hereby claim:
- I am mbijon on github.
- I am mbijon (https://keybase.io/mbijon) on keybase.
- I have a public key ASDneF_5-coE6CEyRCzP3YMftB04es5vID21FVADl4k39go
To claim this, I am signing this object:
import warnings | |
from skimage.measure import compare_ssim | |
from skimage.transform import resize | |
from scipy.stats import wasserstein_distance | |
from scipy.misc import imsave | |
from scipy.ndimage import imread | |
import numpy as np | |
import cv2 | |
## |
import warnings | |
from skimage.measure import compare_ssim | |
from skimage.transform import resize | |
from scipy.stats import wasserstein_distance | |
from scipy.misc import imsave | |
from scipy.ndimage import imread | |
import numpy as np | |
import cv2 | |
## |
# | |
# CORS-header support example while nginx proxies Rails/Grape + Passenger | |
# ...not a complete config file | |
# | |
server { | |
listen 443 ssl; | |
root /foo/public; | |
# Modify for API-specific | |
try_files $uri/index.html $uri @passenger; |
### JHW 2018 | |
import numpy as np | |
import umap | |
# This code from the excellent module at: | |
# https://stackoverflow.com/questions/4643647/fast-prime-factorization-module | |
import random |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
require "openssl" | |
require 'digest/sha2' | |
require 'base64' | |
# We use the AES 256 bit cipher-block chaining symetric encryption | |
alg = "AES-256-CBC" | |
# We want a 256 bit key symetric key based on some passphrase | |
digest = Digest::SHA256.new |
#!/usr/bin/env ruby | |
require "openssl" | |
require 'digest/sha2' | |
require 'base64' | |
# We use the AES 256 bit cipher-block chaining symetric encryption | |
alg = "AES-256-CBC" | |
# We want a 256 bit key symetric key based on some passphrase | |
digest = Digest::SHA256.new |
"use strict"; | |
var fs = require('fs'); | |
var path = require('path'); | |
module.exports = function(context) { | |
var encoding = 'utf-8'; | |
var filepath = 'platforms/ios/cordova/build.xcconfig'; | |
if (context.opts.cordova.platforms.indexOf('ios') === -1) return; |
"use strict"; | |
var fs = require('fs'); | |
var path = require('path'); | |
module.exports = function(context) { | |
var encoding = 'utf-8'; | |
var filepath = 'platforms/ios/cordova/build.xcconfig'; | |
if (context.opts.cordova.platforms.indexOf('ios') === -1) return; |
module AuthHelper | |
def http_login | |
user = 'username' | |
pw = 'password' | |
request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials(user,pw) | |
end | |
end | |
module AuthRequestHelper | |
# |