Skip to content

Instantly share code, notes, and snippets.

View droidMakk's full-sized avatar
🏠
Working from home, Yet globally active 😉

Afroze droidMakk

🏠
Working from home, Yet globally active 😉
View GitHub Profile
@droidMakk
droidMakk / App.js
Last active May 31, 2017 11:01
Express simple get request
app.get('/',function(req,res){
//send Json
var js_On = ['One','Two','Three','Four']
res.json(js_On)
res.end()
//send HTML
var html = "<h1>Head</h1>"
res.send(html)
@droidMakk
droidMakk / authtoken_bitbucket.txt
Last active January 8, 2018 05:16
Generate OAuth Token : CURL - Bitbucket
Request
--------------------------------------------------------
curl -X POST https://bitbucket.org/site/oauth2/access_token \
-d grant_type=client_credentials \
-u user_key:user_secret \
--------------------------------------------------------
Response
--------------------------------------------------------
{
@droidMakk
droidMakk / net_srv.js
Created December 5, 2017 03:28
Simple NodeJS TCP Client & Server
//----------- Server Code------------------------
var net = require('net');
var srv = net.createServer(function(socket){
socket.on('data',function(data){
console.log(data.toString());
})
socket.end('Love, from server')
}).on('error',function(err){
throw err;
})
@droidMakk
droidMakk / CMDLets.cmd
Created December 21, 2017 08:16
Contains some important commands
#Create a directory with todays date
mkdir 20%date:~-2,4%%date:~0,2%%date:~7,2%
@droidMakk
droidMakk / gist_for_r.r
Created December 27, 2017 06:56
Basic R Command snippets
"Simple snippet to view data on map"
m <- get_map("India",zoom=14,maptype="hybrid",source="google")
ggmap(m,base_layer = ggplot(aes(x=abstract$long,y=abstract$lat),data=abstract))+geom_point(colour="green")
@droidMakk
droidMakk / ansible_auth_tkn.yaml
Created January 11, 2018 08:05
Ansible Snippet to generate a token from GIt
- name: generate token
#CURL to generate a Token
win_command: curl -k -X POST https://bitbucket.org/site/oauth2/access_token -d grant_type=client_credentials -u user_key:user_secret
register: resp
- set_fact:
tkn: "{{ resp.stdout | from_json }}"
cacheable: true
- name: initiating it as git repository
win_shell: git init
args:
@droidMakk
droidMakk / .eslintrc.json
Last active June 23, 2018 14:43
react-native eslint configuration
// yarn add eslint babel-eslint eslint-plugin-flowtype flow-bin@^0.67.0 eslint-plugin-react eslint-plugin-react-native eslint-plugin-flowtype
{
"env": {
"browser": true,
"react-native/react-native": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
@droidMakk
droidMakk / .eslintrc.json
Last active July 15, 2018 03:20
Custom set of Configurations for Project
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"parser": "babel-eslint",
"extends": ["standard","eslint:recommended", "plugin:react/all"],
"parserOptions": {
@droidMakk
droidMakk / .hyper.js
Created July 22, 2018 03:36
Hyper plugins customization config
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@droidMakk
droidMakk / ReadME.md
Last active March 26, 2019 10:30
Snack Bytes session tools

Snack Bytes

  1. Boost note - Link
  2. Codeceptjs - Docs
  3. Formik 😊*Forms - Docs
  4. Yup Schema based validator - Docs
  5. DevDocs Documentation in one place - link
  6. Reactotron Monitor App State - link