Skip to content

Instantly share code, notes, and snippets.

View varun-raj's full-sized avatar

Varun Raj Manoharan varun-raj

View GitHub Profile
{
"swagger": "2.0",
"info": {
"version": "0.1.0",
"title": "SSMS Worker API"
},
"host": "34.250.112.30:3001",
"paths": {
"/api/systemtoken": {
"post": {
var cycles = [
{
id: 1,
name: "Cycle 1",
start_date: "01/01/2017",
end_date: "02/28/2017",
},
{
id: 2,
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
TouchableHighlight,
View,
AsyncStorage
} from 'react-native';
@varun-raj
varun-raj / firebase_config.js
Last active December 9, 2016 04:11
Firebase + React Native Code
import * as firebase from "firebase";
var config = {
apiKey: "<YOUR API KEY GOES HERE >",
authDomain: "<YOUR APP DOMAIN GOES HERE>",
databaseURL: "<YOUR DATABASE URL>",
};
firebase.initializeApp(config);
@varun-raj
varun-raj / dropbox_import.rb
Last active September 26, 2016 04:26
dropbox_import.rb
require 'dropbox_sdk'
require 'fileutils'
require 'sinatra'
require 'sinatra/reloader'
$client = DropboxClient.new("YOUR KEY HERE")
$path = "/"
$root_path = "/Users/skcripthq/Projects/DropBox"
server
{
listen 2662;
server_name example.com .example.com;
root /home/varunraj/Projects/php-project/;
index index.html index.htm index.php;
location ~* \.(ico|css|js|gif|jpe?g|png)$
{
@varun-raj
varun-raj / Passenger_Nginx_Module_Init_Script
Created June 1, 2015 11:29
Passenger Nginx Module Init Script
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the nginx web server
# Description: starts nginx using start-stop-daemon