Skip to content

Instantly share code, notes, and snippets.

View sarthology's full-sized avatar
Leading Humans

Sarthak Sharma sarthology

Leading Humans
View GitHub Profile
sarthology / contactFrom.php
Created December 29, 2013 20:15
Its the proper way how to send a mail that will not be a span at all. all you have to do is use like problem solved
$to = '' . ', ';
$to .= '';
$subject = 'The vowers';
$message = $_POST['comments']. "<".$_POST['email'].">";
$headers = 'From:';
$headers = htmlspecialchars($headers);
$message = htmlspecialchars($message);
$mail= mail($to, $subject, $message, $headers);
sarthology / scroll.js
Created January 3, 2014 05:08
start animation when you reach certain element...
var top = $(this).scrollTop();
if(top > 150){
//do something after it scrolls down past 150px

#Time Traveling With A Freelancer

I have a Time Machine.

Yeah, I have a Time Machine like millions of other Mac OS users. Totally got you there, didn't I? ;) But this series is not about Time Machine or Mac OS. It's about freelancers. More specifically, it's about how things have changed for freelancers in the past few years. A lot more platforms are available for them, as well as some great tools to use. It's a long list. Anyway, in this series of articles, I will be sharing some things that I have learned in all my years as a freelancer. ##Chapter 1: "Where to start?" To be honest, the starting is always the same for everyone - frustrating. But now we have some great apps that were not there 4-5 year ago. I'm going to talk about one of them and give you a few tips. I was in college when I first started freelancing. When I made my mind up about pursuing freelancing, the first thing I did was Googling "How to earn money?" Thanks to Google Ads, I was redirected to I finished setting up my profile

Hi, I'm back with the third article in this series. The last two articles are here and here. Do go through them before reading this one. This article is all about tools for freelancers. Being a freelancer myself, I'm always interested in free tools. I mean who doesn't like free tools, right? Every time I hear that there is a cool new tool in the market and its free to use, I go crazy with excitement.

So here's chapter 3 for y'all. #Chapter 3: Tools for freelancers

So some 4-5 years back, all the tools were provided to you by your freelance site itself, like Elance and Freelancer. But now, many freelancers are moving to other sites. There are a ton of tools available, so I decided to make a list of all the best tools I use on a regular basis.

sarthology / Darth-Setting.json
Created August 15, 2018 07:11
Custom Profile for iTerm settings
"Badge Text" : "",
"Custom Directory" : "No",
"Working Directory" : "\/Users\/sarthaksharma",
"Prompt Before Closing 2" : false,
"Selected Text Color" : {
"Green Component" : 1,
"Blue Component" : 1,
"Red Component" : 1
sarthology / regexCheatsheet.js
Created January 10, 2019 07:54
A regex cheatsheet 👩🏻‍💻 (by Catherine)
let regex;
/* matching a specific string */
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello"
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO"
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes...
/* wildcards */
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo"
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo"

How to use it

npm intall programCli



Add the effect and genrate you files to be uploaded on you server vola !!

module.exports = {
parserOptions: {
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
ecmaFeatures: {
jsx: true // Allows for the parsing of JSX
env: {
browser: true,