Skip to content

Instantly share code, notes, and snippets.

Zanidd ninijay

Block or report user

Report or block ninijay

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 shop.c
#include <stdio.h>
#include <stdlib.h>
int main()
{
int con;
con = 0;
int account_balance = 1100;
while(con == 0){
printf("Welcome to the Store App V1.0\n");
@ninijay
ninijay / workaround-w7-cleaner.ps1
Created Oct 19, 2016
Windows 7 Desktop cleaner workaround
View workaround-w7-cleaner.ps1
$targetdirectory = ""
$sourcedirectory = ""
if (!(Test-Path -path $targetdirectory)) {New-Item $targetdirectory -Type Directory}
Get-ChildItem -Path $sourcedirectory | % {
Copy-Item -Path $_.fullname -Destination $targetdirectory
}
@ninijay
ninijay / bit shifting in java.java
Created Oct 5, 2016
bit shifting in java created by ninijay - https://repl.it/Doxs/0
View bit shifting in java.java
class Main {
public static void main(String[] args) {
int a = 300 * 4;
int b = 300 << 2;
System.out.println(a);
System.out.println(b);
}
}
View Dovs-0.java
class Main {
public static void main(String[] args) {
StringBuilder str = new StringBuilder("Hello");
str.append(" World");
System.out.println(str.toString());
}
}
@ninijay
ninijay / java toString.java
Created Sep 28, 2016
java toString created by ninijay - https://repl.it/DjpA/0
View java toString.java
class Main {
public static void main(String[] args) {
myClass cl = new myClass();
System.out.println(cl);
}
}
class myClass {
@Override
public String toString(){
@ninijay
ninijay / time2.py
Created Sep 27, 2016
time2 created by ninijay - https://repl.it/Dick/1
View time2.py
import time
cur_time = time.time()
print(time.asctime(time.localtime()))
@ninijay
ninijay / time1.py
Created Sep 27, 2016
time1 created by ninijay - https://repl.it/Dic1/0
View time1.py
import time
cur_time = time.time()
print(cur_time)
View Ddvv-0.py
import json
class Button(object):
callback_data = ""
text = ""
def __init__(self, callback_data, text):
self.callback_data = callback_data
self.text = text
@ninijay
ninijay / textwrap shorten.py
Created Sep 20, 2016
textwrap shorten created by ninijay - https://repl.it/DdpX/1
View textwrap shorten.py
import textwrap
# standard Paragraph
# width = 12
para = "Hello World!"
print("Normal Paragraph:\n" + para + "\n")
# shorten
@ninijay
ninijay / Python-Textwrap-FIL.py
Created Sep 20, 2016
Python Textwrap FILL created by ninijay - https://repl.it/DdpF/0
View Python-Textwrap-FIL.py
import textwrap
# standard Paragraph
para = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."
print("Normal Paragraph:\n" + para + "\n")
# Maximum length
print("textwrap.fill() Paragraph:\n" + textwrap.fill(para, width=50))
You can’t perform that action at this time.