This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
MIT License | |
Copyright (c) 2019 bcrazydreamer | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Author: BCrazyDreamer | |
License: MIT | |
''' | |
import sys | |
from PIL import Image | |
pixel_symbol = "██" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Author: BCrazyDreamer | |
License: MIT | |
Language: Python3 | |
''' | |
import sys | |
from PIL import Image | |
pixel_symbol = "██" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
MIT License | |
Copyright (c) 2019 bcrazydreamer | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//----------------------------------Winston config file--------------------------------// | |
/*https://www.npmjs.com/package/winston*/ | |
const winston = require('winston'); | |
/*https://www.npmjs.com/package/bvalid*/ | |
const bv = require('bvalid'); | |
const logpath = "/var/log/application_name"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* In model index ----> module.exports all model file | |
* eg:- | |
* **Models** | |
* module.exports = { | |
* 'Login' : require('./Login'), | |
* 'Accounts : require('./Accounts') | |
* } | |
* | |
* Usage:-------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import {connect} from "react-redux"; | |
class App extends Component { | |
constructor(props){ | |
super(props); | |
this.state = {} | |
} | |
componentWillMount(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
box-sizing: border-box; | |
-ms-overflow-style: scrollbar; | |
} | |
body{margin: 0 !important} | |
*, | |
*::before, | |
*::after { | |
box-sizing: inherit; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Compact version of picojs https://github.com/tehnokv/picojs | |
live demo :- https://codepen.io/bcrazydreamer/pen/JjobdQM | |
*/ | |
FaceDetect = {} | |
FaceDetect.unpack_cascade = function(bytes) | |
{ | |
const dview = new DataView(new ArrayBuffer(4)); | |
let p = 8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Install rpi-gpio using | |
npm install rpi-gpio -g | |
*/ | |
const gpio = require('rpi-gpio'); | |
var pin = 21; | |
var pin2 = 20; | |
gpio.setMode(gpio.MODE_BCM); |
OlderNewer