This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module hello; | |
initial | |
begin | |
$display("Hello World!"); | |
$finish ; | |
end | |
endmodule |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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++) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
using namespace std; | |
#define VOWEL 1 | |
#define CONS 2 | |
bool bad=false, good=false; | |
bool isVowel(char c) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.demo; | |
public class Triangle { | |
private String type; | |
public String getType() { | |
return type; | |
} | |
public void setType(String type) { | |
this.type = type; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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] == '.') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
<applet code = "ball.class" width = "300" height = "300"> | |
</applet> | |
*/ | |
import java.awt.*; | |
import java.applet.*; | |
import java.awt.event.*; | |
public class ball extends Applet{ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
<applet code = "fonts.class" width = "300" height = "300"> | |
</applet> | |
*/ | |
import java.awt.*; | |
import java.applet.*; | |
import java.awt.event.*; | |
/** | |
* |