Skip to content

Instantly share code, notes, and snippets.

View sankalpsingha's full-sized avatar

Sankalp Singha sankalpsingha

View GitHub Profile
@sankalpsingha
sankalpsingha / duplicate-finder.py
Created December 20, 2024 21:13
This will find duplicates in a folder ( you can specify the depth )
# # # Basic usage
# python3 duplicate-finder.py --path ~/Downloads --depth 2
# # With minimum size and custom output
# python3 duplicate-finder.py --path ~/Downloads --depth 2 --min-size 1048576 --output my_report.txt
# Delete from a previous report
# python3 duplicate-finder.py --delete-from-report my_report.txt
# # Non-interactive deletion, keeping oldest files
@sankalpsingha
sankalpsingha / file-organizer.py
Created December 20, 2024 21:11
This script will organize the folder based on the extension
import os
import shutil
from pathlib import Path
import logging
from typing import Dict, List, Set
# Configure logging
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
# File type categories and their extensions
@sankalpsingha
sankalpsingha / Activate Office 2019 for macOS VoL.md
Created May 2, 2023 19:12 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Simon Game</title>
<style media="screen">
*{
margin: 0;
padding: 0;
}
function convertToRoman(num) {
var firstTable = {
0: '',
1: 'I',
2: 'II',
3: 'III',
4: 'IV',
5: 'V',
6: 'VI',
import React, { Component } from 'react';
import { View, Text, ActivityIndicator } from 'react-native';
import { Hoshi } from 'react-native-textinput-effects';
import Button from 'react-native-button';
import _ from 'lodash';
import { connect } from 'react-redux';
import { emailChanged, passwordChanged, loginUser } from '../actions/';
class LoginForm extends Component {
onButtonSubmit() {
const INITIAL_STATE = {
email: '',
password: '',
authentication_token: '',
username: '',
errorFlag: false,
spinner: false
};
export default (state = INITIAL_STATE, action) => {
/*global fetch:false*/
export const emailChanged = (email) => {
return {
type: 'EMAIL_CHANGED',
payload: email
};
};
export const passwordChanged = (password) => {
return {
import React, { Component } from 'react';
import { View } from 'react-native';
import { Hoshi } from 'react-native-textinput-effects';
import Button from 'react-native-button';
import { connect } from 'react-redux';
import { emailChanged, passwordChanged } from '../actions/';
class LoginForm extends Component {
emailChanged(value) {
this.props.emailChanged(value);
import React, { Component } from 'react';
import { View } from 'react-native';
import { createStore, applyMiddleware } from 'redux';
import { logger } from 'redux-logger';
import { Provider } from 'react-redux';
import Reducers from './reducers/';
import LoginForm from './components/LoginForm';
class App extends Component {