Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View zerothabhishek's full-sized avatar

Abhishek Yadav zerothabhishek

View GitHub Profile
const WebSocket = require('ws');
const URL = "ws://ws.example.org:8080/cable"
const ORIGIN = "https://example.org"
function connect(label) {
const ws = new WebSocket(URL, [], { origin: ORIGIN })
ws.on('open', function open() {
@zerothabhishek
zerothabhishek / job-react-native-1.js
Last active July 10, 2018 08:41
React native at Calliope
{
title: "React Native developer",
location: "Anywhere",
experience: "2 years",
frameworks: "React Native",
freelance_ok: "Yes",
hours_per_week: 40, // full time
company: "https://www.calliope.consulting",
contact_person: "zerothabhishek@gmail.com",
job_description: "Hiring lead React Native developer for a US based startup",
@zerothabhishek
zerothabhishek / chennai-js-job-template.js
Last active June 20, 2018 07:35
Chennai-js Job template
{
title: "Javascript developer",
location: "Chennai",
experience: "3 years",
frameworks: "Angular",
freelance_ok: "Yes",
hours_per_week: 10, // in case of freelance
company: "Awesome co",
contact_person: "sample@example.org",
job_description: "https://awesome-co.in/jobs/123", //link or details

Questions to ask potential employers

  • How long do you expect it would take me to deploy my first change? To become productive? To understand the codebase?
  • What kind of equipment will I be provided? Will the company pay/reimburse me if I want something specific?
  • What's the longest tenure of a developer at this company?
  • How long has the top quarter of the developers been here?
  • What fraction of the developers have been here less than 6 months?
  • How long does it take to do a complete deployment?
  • How large are PRs? For a "big" PR, how many lines of code? How long is it open?
  • About what fraction of their time are developers given (implicitly or explicitly) the freedom to explore?
@zerothabhishek
zerothabhishek / talk-topics.md
Last active February 7, 2020 21:17
Javascript talk topics
  • Javascript async/await
  • ES7 - whats new
  • ES6 module system
  • ES6 generators
  • Fundamentals of this
  • Webpack - whats new in v4
  • Webpack - alternatives like parcel
  • Webpack - tips and tricks
  • Vue-js introduction
@zerothabhishek
zerothabhishek / Job | Ionic-React Native Freelancer
Last active July 10, 2017 04:59
Job-post | Ionic/React Native Freelancer
I am looking for someone who can develop application using Ionic/React Native,
I am looking for a full time freelancer who could deliver work with in 15 or 20 days maximum.
Required skills
- Should have developed atleast 5 applications using Ionic/React Native
- Should be able to refine the UI screens,
- Should have exposure to security standards.
- Should write test cases and test the application throughly.
- Good to have knowledge in cloud servers like AWS.
@zerothabhishek
zerothabhishek / how-to-reach-1.md
Last active July 1, 2017 06:43
How to Reach: Real Image Media

Address:

Real Image Media Technologies
42, Dr Ranga Rd, Marwadi Thottam, Narasimahapuram, Chennai

Map: google-map

Nearby train stations: Thirumailai MRTS, Mandaveli MRTS
Nearby bus stops: Luz corner, Eldam Road
Landmarks: Kritilals Jwellery, Nageshware Rao park

#!/bin/sh
#
# init.d script for single or multiple unicorn installations. Expects at least one .conf
# file in /etc/unicorn
#
# Modified by jay@gooby.org http://github.com/jaygooby
# based on http://gist.github.com/308216 by http://github.com/mguterl
#
## A sample /etc/unicorn/my_app.conf
##
@zerothabhishek
zerothabhishek / distance.sql
Created February 12, 2017 10:59 — forked from aramonc/distance.sql
MySQL function to calculate the distance between two coordinates using the Haversine formula. Leaving it here for future reference.
DELIMITER $$
CREATE FUNCTION `haversine` (lat1 DECIMAL(8,6), lng1 DECIMAL(8,6), lat2 DECIMAL(8,6), lng2 DECIMAL(8,6)) RETURNS DECIMAL(8,6)
BEGIN
DECLARE R INT;
DECLARE dLat DECIMAL(30,15);
DECLARE dLng DECIMAL(30,15);
DECLARE a1 DECIMAL(30,15);
DECLARE a2 DECIMAL(30,15);
DECLARE a DECIMAL(30,15);
DECLARE c DECIMAL(30,15);
class FacilitiesServicesForm
include ActiveModel::Validations
include ActiveModel::Conversion
extend ActiveModel::Naming
# These are sort of like the has_many relation
attr_accessor :facilities_offerred,
:services_offerred