Skip to content

Instantly share code, notes, and snippets.

View sjdhanasekaran's full-sized avatar

Dhanasekaran S J sjdhanasekaran

  • Software AG (intern)
  • chennai
View GitHub Profile
@sjdhanasekaran
sjdhanasekaran / cloudSettings
Created February 3, 2021 05:57 — forked from vidhya03/cloudSettings
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-06-11T10:37:30.607Z","extensionVersion":"v3.2.9"}
import java.util.Scanner;
public class JosephusProblem {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter the number of Persons : ");
int i=sc.nextInt();
String s = Integer.toBinaryString(i);
String s1 = s.substring(1) +s.charAt(0);
@sjdhanasekaran
sjdhanasekaran / git-commands.mkd
Created April 24, 2018 12:24 — forked from Kerry350/git-commands.mkd
Common Git commands

A little lookup for commands I use frequently

  • Commit all edited files and add a message

git commit -a -m "My commit"

  • Add all new files

git add .