Skip to content

Instantly share code, notes, and snippets.

View raghavgarg1257's full-sized avatar
🤘

Raghav Garg raghavgarg1257

🤘
View GitHub Profile
https://weworkremotely.com/jobs/3115-driven-javascript-node-js-developer
https://angel.co/jan-juna
https://stackoverflow.com/jobs?searchTerm=node.js&type=contract&allowsremote=true
https://www.facebook.com/
https://www.dropurpin.com/
https://news.ycombinator.com/jobs
http://www.devgurus.io/
https://www.startupjobs.cz/nabidka/6918/node-js-developer?utm_source=facebook&utm_medium=ad-auto&utm_content=6918&utm_campaign=2093
https://www.dropurpin.com/apply-now/
http://x-team.com/
@raghavgarg1257
raghavgarg1257 / xcarchive2ipa
Last active January 29, 2021 21:54 — forked from samma835/xcarchive2ipa
To convert .xcarchive to .ipa | xcode 9
xcodebuild
-exportArchive
-exportOptionsPlist {PATH_TO_PROJECT_ROOT}/ios/build/info.plist
-archivePath {PATH_TO_ARCHIVE_MADE_USING_XCODE}/MyApp.xcarchive
-exportPath {PATH_TO_EXPORT_THE_APP}/MyApp.ipa
sendOtp(mobiles, message = null) {
const params = [
{ key: 'authkey', value : process.env.SMS_API_KEY },
{ key: 'sender', value : process.env.SMS_SENDERID },
{ key: 'otp_length', value : 6 },
{ key: 'message', value : message || encodeURIComponent("Your verification code for Spectrum is ##OTP##.") },
{ key: 'mobile', value : mobiles }
];
const queryParams = params.map( o => `${o.key}=${o.value}` );
@raghavgarg1257
raghavgarg1257 / Contest.sol
Last active December 16, 2017 07:49 — forked from codeanyway11/Contest.sol
Solidity Contract for Hackathon.
pragma solidity ^0.4.0;
contract Contest{
struct Participant {
string email;
address account;
bool participated;
}

This is the function to be used, it needs three arguments.

/**
 * [transform description]
 * @param  {Object} records      [description]
 * @param  {Object} [allowed={}] [description]
 * @param  {Object} [add={}]     [description]
 * @return {Object}              [description]
 */

transform(records, allowed = {}, add = {})

getCategory(branch_id)
.then( categories => {
let roomPromises = categories.map( category => {
return getRoom(branch_id, category.id)
.then( rooms => Object.assign({}, category, { rooms }) )
});
return Promise.all(roomPromises)
@raghavgarg1257
raghavgarg1257 / app.js
Last active August 22, 2017 14:29
Sample Server
// app.js
const express = require('express');
const bodyParser = require('body-parser');
const path = require('path');
const cookieParser = require('cookie-parser');
const session = require('express-session');
const app = express();
app.use(bodyParser.json());
@raghavgarg1257
raghavgarg1257 / app.js
Last active December 2, 2020 08:49
simple example of socket.io
// require our dependencies
import express from "express";
import socketCon from "./app/socket.js";
// initializing server requirments
const port = process.env.PORT || 3000;
const app = express();
// start the server
const server = app.listen(port, function() {