Skip to content

Instantly share code, notes, and snippets.

View renganatha10's full-sized avatar

Renganatha Arunachalam renganatha10

  • Bangalore
View GitHub Profile
@renganatha10
renganatha10 / code_setting.json
Created June 7, 2018 06:12
Vscode User Settings
{
"git.enableSmartCommit": true,
"emmet.syntaxProfiles": {
"javascript": "jsx"
},
"editor.fontFamily": "Avenir Light, Monaco, 'Courier New', monospace",
"editor.fontSize": 13,
"eslint.enable": true,
"eslint.autoFixOnSave": true,
@renganatha10
renganatha10 / sw.js
Created April 26, 2017 17:19
Basic service worker configuration
const CACHE_NAME = 'whatsappweb-cache-v9';
const { assets } = global.serviceWorkerOption;
const urlsToCache = ['./', './index.html', ...assets];
self.addEventListener('install', event => {
console.log('Service Woker Started');
event.waitUntil(
caches.open(CACHE_NAME).then(cache => {
console.log('Opened cache');
function main(input) {
input=input.split(/\s+/);
var output = 1;
var init = input[1];
for(var i = 1; i < input[0]; i++){
if(temp < input[i + 1] ){
output++;
}
temp = input[i + 1];
}
@renganatha10
renganatha10 / NativeManager.java
Created February 22, 2017 17:54
Set of Example for Bridging android native Modules in React Native
package com.musicapp;
import android.annotation.TargetApi;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
@renganatha10
renganatha10 / AccessReactSubView.m
Last active October 17, 2024 10:38
Basic Native UI component Bridging Code
//RCTListViewManger.h
#import <UIKit/UIKit.h>
@interface RCTNativeListView : UIView
@property (nonatomic) NSArray * colors;
@end
--------------------------------------------------------------------------------
//RCTListViewManger.m