This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as ACTION_TYPES from '../actions/action_types' | |
const initialState = { | |
stateprop1 : false | |
} | |
const Reducer1 = (state = initialState, action) => { | |
switch(action.type){ | |
case ACTION_TYPES.SUCCESS: | |
console.log("In Reducer 1") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as ACTION_TYPES from "./action_types" | |
export const SUCCESS = { | |
type: ACTION_TYPES.SUCCESS | |
} | |
export const FAILURE = { | |
type: ACTION_TYPES.FAILURE | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import shutil | |
import glob | |
outfilename = "all.txt" | |
with open(outfilename, 'wb') as outfile: | |
for filename in glob.glob('*.txt'): | |
if filename == outfilename: | |
# don't want to copy the output into the output | |
continue | |
with open(filename, 'rb') as readfile: | |
shutil.copyfileobj(readfile, outfile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install selenium with pip install selenium | |
#and make sure you place Chromedriver on the code path and latest Chrome Installed | |
import selenium | |
#used for sending keys | |
from selenium.webdriver.common.keys import Keys | |
#Used for Waiting for a xapth to be available | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.common.by import By |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import glob,os | |
#folder in which files are there | |
files="D:\\Projects\\CSVMERGE\\muse\\" | |
#Combining all CSVs | |
combined_csv = pd.concat( [ pd.read_csv(f,encoding = "ISO-8859-1") for f in glob.glob(os.path.join(files,'*.csv')) ] ,ignore_index=True) | |
#Removing Duplicates | |
combined_csv = combined_csv[combined_csv['Name'].duplicated() == False] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections.Generic; | |
/// <summary> | |
/// Sound Manager Script for all types of Games :: @arunkarnan | |
/// </summary> | |
[System.Serializable] | |
public class SoundData | |
{ | |
public SoundManager.Sounds soundEnum; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from lxml import html | |
from tkinter import * | |
#import tkinter as ttk | |
import re | |
import datetime | |
import os | |
from firebase import firebase | |
import hashlib | |
#import App as App |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from lxml import html | |
from tkinter import * | |
import tkinter as ttk | |
import re | |
import datetime | |
import os | |
from firebase import firebase | |
import hashlib | |
#import App as App |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class CameraZoom : MonoBehaviour { | |
public Transform player1; | |
public Transform player2; | |
private const float DISTANCE_MARGIN = 1.0f; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class TouchDetection : MonoBehaviour { | |
bool singleTouch; | |
float doubleClickSpeed = 1.5f; | |
float timeElapsed = 0.0f; | |
void Update(){ |
NewerOlder