Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Md Johirul Islam johirbuet

🎯
Focusing
Block or report user

Report or block johirbuet

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 DieHard.tla
--------------------------- MODULE DieHardPlusCal ---------------------------
EXTENDS Integers
Min(m,n) == IF m < n THEN m ELSE n
(***************************************************************************
--algorithm DieHard{
variables big = 0; small = 0 ;
{
View valvar.scala
object ValVar{
def main(args : Array[String])
{
val x=5;
x=10; //Error
var y=5;
y=10; //ok
}
}
View UVA10812.java
import java.util.Scanner;
public class UVA10812 {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
while(n-->0)
{
int sum=sc.nextInt();
int dif=sc.nextInt();
View UVA573.java
import java.util.Scanner;
public class UVA573 {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
while(true)
{
double H = sc.nextDouble();
double U = sc.nextDouble();
View CF_750A.java
import java.util.Scanner;
public class CF_750A {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int t=sc.nextInt();
int timepassed=0;
int solve=0;
while(timepassed + t <=240 && solve<=n)
View UVA10300.java
import java.math.BigInteger;
import java.util.Scanner;
public class UVA10300 {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int T=sc.nextInt();
while(T-->0)
{
int f=sc.nextInt();
View RecrusiveArrayPrint.java
import java.util.*;
import java.lang.*;
import java.io.*;
class RecrusiveArrayPrint
{
public static void main (String[] args)
{
int [] a={1,2,3,4,5,6,7,8,9,10};
printArray(a,0,a.length-1);
View code.js
/*
* Programming Quiz: Make An Iterable Object
*
* Turn the `james` object into an iterable object.
*
* Each call to iterator.next should log out an object with the following info:
* - key: the key from the `james` object
* - value: the value of the key from the `james` object
* - done: true or false if there are more keys/values
*
View fix.js
projects.projects.forEach(function (project){
$("#projects").append(HTMLprojectStart);
$(".project-entry:last").append(HTMLprojectTitle.replace("%data%", projects.projects[project].title), HTMLprojectDates.replace("%data%", projects.projects[project].dates));
});
View app.js
/*
* Create a list that holds all of your cards
*/
var cards = ["fa fa-diamond" , "fa fa-diamond", "fa fa-paper-plane-o", "fa fa-paper-plane-o",
"fa fa-anchor" , "fa fa-anchor" , "fa fa-bolt" , "fa fa-bolt",
"fa fa-cube" , "fa fa-cube" , "fa fa-leaf", "fa fa-leaf",
"fa fa-bicycle" , "fa fa-bicycle" , "fa fa-bomb" , "fa fa-bomb",
You can’t perform that action at this time.