Skip to content

Instantly share code, notes, and snippets.

View robi56's full-sized avatar

Rabindra Nath Nandi robi56

View GitHub Profile
@robi56
robi56 / clang-cc1-options.txt
Created March 6, 2022 16:16 — forked from lijiansong/clang-cc1-options.txt
clang-cc1-options.txt
OVERVIEW: LLVM 'Clang' Compiler: http://clang.llvm.org
USAGE: clang -cc1 [options] <inputs>
OPTIONS:
-add-plugin <name> Use the named plugin action in addition to the default action
-analyze-function <value>
Run analysis on specific function
-analyzer-checker-help Display the list of analyzer checkers that are available
-analyzer-checker <value>
@robi56
robi56 / convert_mnist.py
Created March 4, 2022 03:48 — forked from mats-claassen/convert_mnist.py
Source code used in the blog at [blog.xmartlabs.com]
import numpy as np
import tensorflow as tf
from PIL import Image
from tensorflow import keras
import coremltools
import tfcoreml as tf_converter
import tensorflow.keras.backend as K
import datetime
import os
from tensorflow.python.framework import graph_io
@robi56
robi56 / gist:4aa33e6c69cd89447bcd52901647bb8d
Created March 3, 2022 17:13 — forked from hnakamur/gist:3577388
cmake --system-information in directory without cmakefiles on OSX Mountain Lion
Avoid ctest truncation of output: CTEST_FULL_OUTPUT
========================================================
=== MAIN VARIABLES
========================================================
CMAKE_STATIC_LIBRARY_PREFIX == "lib"
CMAKE_STATIC_LIBRARY_SUFFIX == ".a"
CMAKE_SHARED_LIBRARY_PREFIX == "lib"
CMAKE_SHARED_LIBRARY_SUFFIX == ".dylib"
CMAKE_SHARED_MODULE_PREFIX == "lib"
CMAKE_SHARED_MODULE_SUFFIX == ".so"
@robi56
robi56 / client.py
Created June 28, 2018 09:32 — forked from kylehounslow/client.py
Send and receive images using Flask, Numpy and OpenCV
import requests
import json
import cv2
addr = 'http://localhost:5000'
test_url = addr + '/api/test'
# prepare headers for http request
content_type = 'image/jpeg'
headers = {'content-type': content_type}
@robi56
robi56 / playbook-install-jdk8.yml
Created February 7, 2016 11:51 — forked from andershedstrom/playbook-install-jdk8.yml
Ansible playbook for installing Oracle Java 8 on CentOS
---
- hosts: app
remote_user: vagrant
sudo: yes
vars:
download_url: http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-x64.tar.gz
download_folder: /opt
java_name: "{{download_folder}}/jdk1.8.0_05"
java_archive: "{{download_folder}}/jdk-8u5-linux-x64.tar.gz"