Skip to content

Instantly share code, notes, and snippets.

👻
Focusing

Sarthak Sharma sarthology

👻
Focusing
Block or report user

Report or block sarthology

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View trailer.md

How to use it

npm intall programCli

run

program

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

@sarthology
sarthology / regexCheatsheet.js
Created Jan 10, 2019
A regex cheatsheet 👩🏻‍💻 (by Catherine)
View regexCheatsheet.js
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"
@sarthology
sarthology / Darth-Setting.json
Created Aug 15, 2018
Custom Profile for iTerm settings
View Darth-Setting.json
{
"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
},
View Chapter3.md

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.

View Chapter 1.md

#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 Elance.com. I finished setting up my profile

@sarthology
sarthology / scroll.js
Created Jan 3, 2014
start animation when you reach certain element...
View scroll.js
$(window).scroll(function(){
var top = $(this).scrollTop();
if(top > 150){
//do something after it scrolls down past 150px
}
});
@sarthology
sarthology / contactFrom.php
Created Dec 29, 2013
Its the proper way how to send a mail that will not be a span at all. all you have to do is use Name@Site.com like Contact@sarthak.com problem solved
View contactFrom.php
<?php
$to = 'yourMail1@gmail.com' . ', ';
$to .= 'yourMail2@gmail.com';
$subject = 'The vowers';
$message = $_POST['comments']. "<".$_POST['email'].">";
$headers = 'From: contact@thevowers.com';
$headers = htmlspecialchars($headers);
$message = htmlspecialchars($message);
$mail= mail($to, $subject, $message, $headers);
?>
You can’t perform that action at this time.