Skip to content

Instantly share code, notes, and snippets.

View axayjha's full-sized avatar
🚀
work hard, play hard

Akshay Anand axayjha

🚀
work hard, play hard
View GitHub Profile
module hello;
initial
begin
$display("Hello World!");
$finish ;
end
endmodule
#include <iostream>
#include <vector>
using namespace std;
int count_zero_seq(vector <int> seq)
{
int n = seq.size();
int count = 0;
for (int len = 1; len <= n; len++)
#include <iostream>
#include <string>
using namespace std;
#define VOWEL 1
#define CONS 2
bool bad=false, good=false;
bool isVowel(char c)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="triangle" class="com.example.demo.Triangle">
<property name="type" value="Equilateral"></property>
</bean>
</beans>
package com.example.demo;
public class Triangle {
private String type;
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
package com.example.demo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
; 8086 code for Hello World
DATA SEGMENT
MSG DB "Hello, World!", "$"; DB: DEFINE BYTE
; $: terminates the string
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE, DS:DATA
; INIT SEGMENT REGS
#include <stdio.h>
#include <string.h>
int main(int argc, char *argv[])
{
char string[100], reverse_string[100];
scanf("%s", string);
for(int i=0, n = strlen(string); i<n; i++)
if(string[i] == '.') {
/*
<applet code = "ball.class" width = "300" height = "300">
</applet>
*/
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
public class ball extends Applet{
/*
<applet code = "fonts.class" width = "300" height = "300">
</applet>
*/
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
/**
*