code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
<?php session_start(); $_SESSION['id'] = ''; $_SESSION['email'] = ''; //session_destroy(); header("location: index.php"); ?>
071e-bernhardt-php-course
trunk/cms/admin/logout.php
PHP
mit
139
<?php include_once "config.php"; ?> <html> <head> <title><?php echo $setting['site_name'];?></title> <link href="styles.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="header"> <div id="logo"> <h1><?php echo $setting['site_name...
071e-bernhardt-php-course
trunk/cms/services.php
PHP
mit
1,353
<?php //1. Connecti to MySQL server mysql_connect('localhost', 'root', ''); //2. Selecting database mysql_select_db('bernhardt'); $setting = mysql_fetch_assoc( mysql_query("SELECT * FROM settings") ); //Left sidebar news items $news_query = "SELECT * FROM news order by created_at DESC LI...
071e-bernhardt-php-course
trunk/cms/config.php
PHP
mit
479
<?php include_once "config.php"; ?> <html> <head> <title><?php echo $setting['site_name'];?></title> <link href="styles.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="header"> <div id="logo"> <h1><?php echo $setting['site_na...
071e-bernhardt-php-course
trunk/cms/news.php
PHP
mit
1,489
<p> &copy; 2014. All Rights Reserved. </p>
071e-bernhardt-php-course
trunk/cms/footer_inc.php
Hack
mit
44
<?php while ($menu_row = mysql_fetch_assoc($menus_result)) { ?> <a href="<?php echo $menu_row['href'];?>"> <?php echo $menu_row['name'];?> </a> <?php } ?>
071e-bernhardt-php-course
trunk/cms/nav_inc.php
PHP
mit
165
<html> <head> <title> Bernhardt PHP </title> <style type="text/css"> body{ margin-bottom:500px; /* background: #E29853; */ } </style> </head> <body> <div id="wrapper"> <a href="http://google.com">Google</a> <a href="http...
071e-bernhardt-php-course
trunk/html_tags.php
Hack
mit
2,248
<html> <head> <title> Bernhardt PHP </title> <style type="text/css"> .red{ width:200px; height:200px; background:#900; } </style> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready...
071e-bernhardt-php-course
trunk/js.html
HTML
mit
892
<html> <head> <title> This is title </title> </head> <body> Hello Bernhardt <br/> Q. WAP to display your name 100 times. <br/> <?php for ($i = 1; $i <= 100; $i++){ //echo $i; echo " Bernhardt"; echo "<br/>"; } ?> </body> </html>...
071e-bernhardt-php-course
trunk/helloworld.php
PHP
mit
322
<html> <head> <title> Bernhardt PHP </title> </head> <body> Arrays in PHP <br/> <?php $name = "Hari Chandra Mathema"; echo $name; echo "<br/>"; $students_arr = array ("ram", "shyam","hari", "sita"); //echo $students_arr; echo "<pre>"; print_r($students...
071e-bernhardt-php-course
trunk/array.php
PHP
mit
1,293
<html> <head> <title> Bernhardt PHP </title> <body> <form method="GET" action=""> What's your name ? <br/> <input name="username" type="text"/> <input name="btnsubmit" type="submit" value="Submit"/> </form> <?php echo "<pre>"; print_r($_GET);...
071e-bernhardt-php-course
trunk/forms.php
PHP
mit
430
<html> <head> <title> Bernhardt PHP </title> <body> <form method="GET" action=""> N1? <br/> <input name="n1" type="text"/><br/> N2? <br/> <input name="n2" type="text"/><br/> <input name="btnsubmit" type="submit" value="Calculate Sum"/> </fo...
071e-bernhardt-php-course
trunk/forms_sum.php
PHP
mit
522
<html> <head> <title>Lorem Ipsum Website</title> <style type="text/css"> body{ margin:0px; } #sample { background:#e00; width:300px; height:200px; float:left; } #another { float:left; width:300px; height:200px; background:#00e; ...
071e-bernhardt-php-course
trunk/html/floats.html
HTML
mit
736
<html> <head> <title>Lorem Ipsum Website</title> <link href="styles.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="header"> <div id="logo"> <h1>Bernhardt Website</h1> </div> <div id="nav"> <a href="layout.html">Home...
071e-bernhardt-php-course
trunk/html/contact.html
HTML
mit
1,897
<html> <head> <title>Lorem Ipsum Website</title> <link href="styles.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="header"> <div id="logo"> <h1>Bernhardt Website</h1> </div> <div id="nav"> <a href="layout.html">Home...
071e-bernhardt-php-course
trunk/html/services.html
HTML
mit
1,953
#wrapper{ width:960px; margin:0 auto; } #header #logo{ height:100px; background:url("logo.jpg"); } #header #logo h1{ padding-top:30px; color:#B10814; margin-left: 15px; } #header #nav{ height:30px; line-height:30px; padding:10px; background:#900; } a { co...
071e-bernhardt-php-course
trunk/html/styles.css
CSS
mit
1,003
<html> <head> <title>Lorem Ipsum Website</title> <link href="styles.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="header"> <div id="logo"> <h1>Bernhardt Website</h1> </div> <div id="nav"> <a href="layout.html">Home...
071e-bernhardt-php-course
trunk/html/layout.html
HTML
mit
3,052
<html> <head> <title>Lorem Ipsum Website</title> <link href="styles.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="header"> <div id="logo"> <h1>Bernhardt Website</h1> </div> <div id="nav"> <a href="layout.html">Home...
071e-bernhardt-php-course
trunk/html/about.html
HTML
mit
2,181
<html> <head> <title> Bernhardt PHP </title> <body> <?php //echo rand(0,1); echo pi(); echo "<br/>"; echo ceil(1.45); echo "<br/>"; echo floor(1.45); ?> </body> </html>
071e-bernhardt-php-course
trunk/functions_math.php
PHP
mit
274
<html> <head> <title> Bernhardt PHP </title> <body> <?php //phpinfo(); $filename = "sample.jpg"; /* for ($i = 0; $i < strlen($filename); $i++){ echo $filename[$i] }*/ // substr ( string string, int start [, int length] ) echo substr($filename...
071e-bernhardt-php-course
trunk/functions_string.php
PHP
mit
2,055
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Animated Menu Hover 2</title> <style type="text/css"> body { margin...
071e-bernhardt-php-course
trunk/jquery-tutorials/Copy of animated-hover2.html
HTML
mit
1,141
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Disappear</title> <script type="text/javascript" src="jquery.js"></sc...
071e-bernhardt-php-course
trunk/jquery-tutorials/simple-disappear.html
HTML
mit
2,758
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Chainable Transition Effects</title> <script type="text/javascript" s...
071e-bernhardt-php-course
trunk/jquery-tutorials/chainable-effects.html
HTML
mit
1,114
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Block clickable</title> <script type="text/javascript" src="jquery.js...
071e-bernhardt-php-course
trunk/jquery-tutorials/new-updates.html
HTML
mit
1,087
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Accordion 1</title> <script type="text/javascript" src="jquery.js"></...
071e-bernhardt-php-course
trunk/jquery-tutorials/accordion1.html
HTML
mit
2,832
/* * jQuery Color Animations * Copyright 2007 John Resig * Released under the MIT and GPL licenses. */ (function(jQuery){ // We override the animation for all of these color styles jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColo...
071e-bernhardt-php-course
trunk/jquery-tutorials/jquery.color.js
JavaScript
mit
3,660
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Add CSS Class to Link Type</title> <script type="text/javascript" src...
071e-bernhardt-php-course
trunk/jquery-tutorials/link-types.html
HTML
mit
1,873
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Image Replacement</title> <script type="text/javascript" src="jquery....
071e-bernhardt-php-course
trunk/jquery-tutorials/img-replacement.html
HTML
mit
1,783
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Block clickable</title> <script type="text/javascript" src="jquery.js...
071e-bernhardt-php-course
trunk/jquery-tutorials/block-clickable.html
HTML
mit
1,529
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Collapsible Message Panels</title> <script type="text/javascript" src=...
071e-bernhardt-php-course
trunk/jquery-tutorials/collapsible-panels.html
HTML
mit
4,291
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Animated Menu Hover 1</title> <script type="text/javascript" src="jqu...
071e-bernhardt-php-course
trunk/jquery-tutorials/animated-hover1.html
HTML
mit
1,781
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>jQuery Tutorials for Designers</title> <style type="text/css"> body {...
071e-bernhardt-php-course
trunk/jquery-tutorials/index.html
HTML
mit
4,186
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Animated Menu Hover 2</title> <script type="text/javascript" src="jqu...
071e-bernhardt-php-course
trunk/jquery-tutorials/animated-hover2.html
HTML
mit
1,869
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Simple Slide Panel</title> <script type="text/javascript" src="jquery...
071e-bernhardt-php-course
trunk/jquery-tutorials/simple-slide-panel.html
HTML
mit
1,392
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Imitate the WordPress Comment Management</title> <script type="text/j...
071e-bernhardt-php-course
trunk/jquery-tutorials/wordpress-comments.html
HTML
mit
4,749
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Accordion 2</title> <script type="text/javascript" src="jquery.js"></...
071e-bernhardt-php-course
trunk/jquery-tutorials/accordion2.html
HTML
mit
2,851
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Imitate the WordPress Comment Management</title> <script type="text/j...
071e-bernhardt-php-course
trunk/jquery-tutorials/comments.html
HTML
mit
6,437
<html> <head> <title><?php bloginfo( 'name' ); ?></title> <link href="<?php echo get_template_directory_uri(); ?>/style.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="header"> <div id="logo"> <h1><?php bloginfo( 'name'...
071e-bernhardt-php-course
trunk/wordpress/bernhardt-theme/index.php
PHP
mit
2,044
<html> <head> <title><?php bloginfo( 'name' ); ?></title> <link href="<?php echo get_template_directory_uri(); ?>/style.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="header"> <div id="logo"> <h1><?php bloginfo( 'name'...
071e-bernhardt-php-course
trunk/wordpress/bernhardt-theme/home.php
PHP
mit
2,909
/* Theme Name: Bernhardt Theme Author: 4th Sem Author URI: http://google.com Description: This is test theme. Version: 1.0 */ #wrapper{ width:960px; margin:0 auto; } #header #logo{ height:100px; background:url("logo.jpg"); } #header #logo h1{ padding-top:30px; color:#B10814; mar...
071e-bernhardt-php-course
trunk/wordpress/bernhardt-theme/style.css
CSS
mit
1,475
<html> <head> <title> Bernhardt PHP </title> </head> <body> <?php $ext = "doc"; $ext_arr = array ("png", "jpg", "bmp", "gif"); // in_array() function if ( in_array($ext, $ext_arr)) { echo "allowed !"; } else { echo "Not suppo...
071e-bernhardt-php-course
trunk/functions_array.php
PHP
mit
1,865
<html> <head> <title> Bernhardt PHP </title> </head> <body> <?php //function to add two numbers function add($n1, $n2){ $sum = $n1 + $n2; return $sum; } $s = add (234, 876); echo "Sum is: ".$s; echo "<br/>"; echo "<br/>"; /*********...
071e-bernhardt-php-course
trunk/user_functions.php
PHP
mit
864
<html> <head> <title> Bernhardt PHP </title> </head> <body> <?php /*Associative Array in PHP*/ $zone_headquarters = array ( "bagmati" => "kathmandu", "kaski" => "pokhara", "narayani" => "chitwan" ); /* echo $zone_headquarters['bagmati']; ec...
071e-bernhardt-php-course
trunk/array2d.php
PHP
mit
1,661
<html> <head> <title> Bernhardt PHP </title> <body> <form align="center " method="GET" action=""> no1<br/>; <input name="n" type ="text"/><br/> </form> <?php $num=$_GET['n']; for($i=1;$i<=$num;$i++) { if($i%2==0) echo $i."<br/>"; } ?> </body> ...
071e-bernhardt-php-course
trunk/class_test/even_nums_nawaraj.php
PHP
mit
332
<html> <head> <title> B </title> <body> <form method="GET" action=""> enter temperature in centigrade <br/> <input name= "n1" type= "text"/> <input type= "submit" value = "submit" /> </form> <?php $c = $_GET['n1']; $f = (($c*9)/5) + 32 ; echo "...
071e-bernhardt-php-course
trunk/class_test/c_to_f_sujan.php
PHP
mit
420
<html> <head> <title> Bernhardt PHP </title> <body> <form method ="GET" action=""> No. 1 <br/> <input name= "n1" type= "text"/> <br/> No. 2<br/> <input name= "n2" type= "text"/> <br/> <input type= "submit" value = "submit" /> </form> <?php $num1 = $_GET['n1']; ...
071e-bernhardt-php-course
trunk/class_test/greater_num_samikshya.php
PHP
mit
460
<html> <head> <title> Bernhardt PHP </title> <body> <form align="center " method="GET" action=""> Enter your date of birth: Year: <input name="year" type ="text"/><br/> Month: <input name="month" type="text"/> <br/> Day: <input name="day" type="text"/> <br/> ...
071e-bernhardt-php-course
trunk/class_test/calculate_age_bikesh.php
PHP
mit
833
<html> <head> <title> Bernhardt College PHP Course </title> <body> <form method="GET" action=""> <input name="r" type="text"/> <input type="submit" value="result"/> </form> <?php //define("PI", pi()); define("PI", 3.14156); $n=$_GET['r']; //echo 2* pi() *$n; echo...
071e-bernhardt-php-course
trunk/class_test/circumferance_circle_naresh_pant.php
PHP
mit
363
<html> <head> <title> B </title> <body> <form method="GET" action=""> No. 1 <br/> <input name= "n1" type= "text"/> <input type= "submit" value = "submit" /> </form> <?php $num1 = $_GET['n1']; echo $num1*($num1+1)/2; echo "<br/>"; ...
071e-bernhardt-php-course
trunk/class_test/sum_to_n_dip_chandra_regmi.php
PHP
mit
357
<html> <head> <title> Bernhardt PHP </title> <body> <?php //date_default_timezone_set("Asia/Kathmandu"); //date_default_timezone_get(); echo $now = time(); echo "<br/>"; echo date("Y-m-d H:i:s", $now); echo "<br/>"; echo date("l, M j...
071e-bernhardt-php-course
trunk/functions_datetime.php
PHP
mit
501
<html> <head> <title>Lorem Ipsum Website</title> <link href="styles.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="header"> <div id="logo"> <h1>Bernhardt Website</h1> </div> <!-- nav --> <div id="nav"> <...
071e-bernhardt-php-course
trunk/php_template/index.php
PHP
mit
2,408
#wrapper{ width:960px; margin:0 auto; } #header #logo{ height:100px; background:url("logo.jpg"); } #header #logo h1{ padding-top:30px; color:#B10814; margin-left: 15px; } #header #nav{ height:30px; line-height:30px; padding:10px; background:#900; } a { co...
071e-bernhardt-php-course
trunk/php_template/styles.css
CSS
mit
1,340
<html> <head> <title>Lorem Ipsum Website</title> <link href="styles.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="header"> <div id="logo"> <h1>Bernhardt Website</h1> </div> <div id="nav"> <?php include "nav_i...
071e-bernhardt-php-course
trunk/php_template/contact.php
PHP
mit
1,219
<div class="left_box"> <h4>Latest News</h4> <p> <a href=""> Lorem ipsum dolar sit amet<br/> <span>this is small news content of the full news post, <?php echo date("Y/m/d"); ?></span> </a> <a href=""> Lorem ipsum dolar sit amet<br/> <span>this is small news content of the full news pos...
071e-bernhardt-php-course
trunk/php_template/left_inc.php
PHP
mit
559
<html> <head> <title>Lorem Ipsum Website</title> <link href="styles.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="header"> <div id="logo"> <h1>Bernhardt Website</h1> </div> <div id="nav"> <?php include "nav_i...
071e-bernhardt-php-course
trunk/php_template/about.php
PHP
mit
1,503
<html> <head> <title>Lorem Ipsum Website</title> <link href="styles.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="header"> <div id="logo"> <h1>Bernhardt Website</h1> </div> <div id="nav"> <?php include "nav_i...
071e-bernhardt-php-course
trunk/php_template/services.php
PHP
mit
1,275
<p> &copy; 2014. All Rights Reserved. </p>
071e-bernhardt-php-course
trunk/php_template/footer_inc.php
Hack
mit
44
<a href="index.php">Home</a> <a href="about.php">About</a> <a href="services.php">Services</a> <a href="contact.php">Contact Us</a>
071e-bernhardt-php-course
trunk/php_template/nav_inc.php
Hack
mit
140
<html> <head> <title> Bernhardt PHP </title> </head> <body> <?php /*Associative Array in PHP*/ $zone_headquarters = array ( "bagmati" => "kathmandu", "kaski" => "pokhara", "narayani" => "chitwan" ); $status = array ( array ( ...
071e-bernhardt-php-course
trunk/array_status.php
PHP
mit
1,361
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package client; import org.apache.thrift.TException; import org.apache.thrift.protocol.TBinaryProtocol; import org.apache.thrift.protocol.TProtocol; import org.apache.thrift.transport.TFramedTransport; import org.apache...
123456cc
src/client/NonblockingClient.java
Java
lgpl
1,236
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package server; import DAO.StatusDAO; import DAO.TagDAO; import DAO.UserDAO; import java.util.logging.Level; import java.util.logging.Logger; import org.apache.cassandra.thrift.Cassandra; import org.apache.cassandra.thr...
123456cc
src/server/UserImpl.java
Java
lgpl
3,524
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package server; import org.apache.thrift.server.TNonblockingServer; import org.apache.thrift.server.TServer; import org.apache.thrift.transport.TNonblockingServerSocket; import org.apache.thrift.transport.TNonblockingSe...
123456cc
src/server/NonblockingServer.java
Java
lgpl
1,116
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package pojo; import java.util.List; /** * * @author tipuder */ public class User { public static String col_favorite = "list_status_ID"; public static String col_parent = "FavoriteStatus"; private Strin...
123456cc
src/pojo/User.java
Java
lgpl
1,099
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package pojo; /** * * @author tipuder */ public class Status { public static String colname_content = "content"; public static String colname_tags = "tags"; public static String colname_likecount = "like_...
123456cc
src/pojo/Status.java
Java
lgpl
2,619
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package pojo; import java.util.List; /** * * @author tipuder */ public class Tag { public static String name_col_cdate = "create_date"; public static String name_col_mdate = "modify_date"; public st...
123456cc
src/pojo/Tag.java
Java
lgpl
2,658
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package common; import org.apache.cassandra.thrift.ConsistencyLevel; /** * * @author tipuder */ public class Constants { public static final String UTF8 = "UTF8"; public static final String KEYSPACE = "NghiN...
123456cc
src/common/Constants.java
Java
lgpl
528
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package common; import static common.Constants.UTF8; import java.io.UnsupportedEncodingException; import java.nio.ByteBuffer; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.logging.Level...
123456cc
src/common/GeneralHandling.java
Java
lgpl
3,390
package DAO; import java.io.UnsupportedEncodingException; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; import org.apache.cassandra.thrift.*; import org.apache.thrift.TException; import pojo.User; public class UserDAO { ...
123456cc
src/DAO/UserDAO.java
Java
lgpl
11,543
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import static common.Constants.*; import org.apache.cassandra.thrift.Cassandra; import org.apache.cassandra.thrift.InvalidRequestException; import org.apache.thrift.TException; import org.apache.thrift.prot...
123456cc
src/DAO/CassandraDataAccessHelper.java
Java
lgpl
1,189
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import common.GeneralHandling; import java.io.UnsupportedEncodingException; import java.nio.ByteBuffer; import java.util.*; import java.util.logging.Level; import java.util.logging.Logger; import org.apache...
123456cc
src/DAO/StatusDAO.java
Java
lgpl
15,128
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package DAO; import common.GeneralHandling; import java.io.UnsupportedEncodingException; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; imp...
123456cc
src/DAO/TagDAO.java
Java
lgpl
15,672
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ServicesAccessData; /** * * @author tipuder */ public class Server { }
123456cc
src/ServicesAccessData/Server.java
Java
lgpl
188
package Testing; import DAO.TagDAO; import DAO.UserDAO; import java.util.logging.Level; import java.util.logging.Logger; import org.apache.cassandra.thrift.Cassandra; import org.apache.cassandra.thrift.InvalidRequestException; import org.apache.thrift.TException; import org.apache.thrift.protocol.TBinaryProtocol; imp...
123456cc
src/Testing/app.java
Java
lgpl
3,373
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Resources; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembl...
10hca2-cheer-pmtudien
trunk/src/PhanMemTuDien/PhanMemTuDien/Properties/AssemblyInfo.cs
C#
oos
1,427
using System; using System.Collections.Generic; using System.Windows.Forms; namespace PhanMemTuDien { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Appl...
10hca2-cheer-pmtudien
trunk/src/PhanMemTuDien/PhanMemTuDien/Program.cs
C#
oos
480
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
10hca2-cheer-pmtudien
trunk/src/PhanMemTuDien/TaiNguyen/Properties/AssemblyInfo.cs
C#
oos
1,443
using System; using System.Collections.Generic; using System.Text; namespace PhanMemTuDien.TaiNguyen { public class QuanLyTaiNguyen { private Dictionary<String, object> _khoTaiNguyen; private QuanLyTaiNguyen() { _khoTaiNguyen = new Dictionary<string, object>(); ...
10hca2-cheer-pmtudien
trunk/src/PhanMemTuDien/TaiNguyen/QuanLyTaiNguyen.cs
C#
oos
1,510
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; namespace PhanMemTuDien.TaiNguyen { public partial class MyForm : Form { public MyForm(...
10hca2-cheer-pmtudien
trunk/src/PhanMemTuDien/TaiNguyen/MyForm.cs
C#
oos
7,088
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
10hca2-cheer-pmtudien
trunk/src/PhanMemTuDien/PhanMemTuDienUnitTest/Properties/AssemblyInfo.cs
C#
oos
1,319
/* Copyright 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
12tsangjh1-tx2
bookmark_bubble.js
JavaScript
asf20
19,874
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <!-- Copyright 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http:/...
12tsangjh1-tx2
example/example.html
HTML
asf20
1,540
/* Copyright 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
12tsangjh1-tx2
example/example.js
JavaScript
asf20
1,836
#!/bin/bash # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
12tsangjh1-tx2
images/generate_base64_images
Shell
asf20
999
all: stack inheritstack templatestack stack: stack.h stack.cc g++ -o stack stack.cc inheritstack: inheritstack.h inheritstack.cc list.h list.cc g++ -o inheritstack inheritstack.cc list.cc templatestack: templatestack.h templatestack.cc g++ -o templatestack templatestack.cc
07os405
trunk/nachos/c++example/Makefile
Makefile
mit
280
// list.cc // Routines to manage a singly-linked list of integers. // // A "ListElement" is allocated for each item to be put on the // list; it is de-allocated when the item is removed. This means // we don't need to keep a "next" pointer in every object we // want to put on a list. // // Copyright ...
07os405
trunk/nachos/c++example/list.cc
C++
mit
3,604
\documentstyle[12pt,fullpage]{article} \newcommand{\putfig}[3]% {\begin{figure}% \centerline{% \psfig{figure=#1.ps,width=#3}}% \caption{#2}% \label{fig:#1}% \end{figure}} \input{psfig} \begin{document} \begin{figure*}[t] \begin{center} {\LARGE\bf A Quick Introduction to C++} \vspace{3.0ex} {\Large Tom Anderson} \...
07os405
trunk/nachos/c++example/c++.tex
TeX
mit
66,890
// inheritstack.cc // Routines for two implementions of a LIFO stack of integers, // one as an array, the other as a list. // // Copyright (c) 1992,1993,1995 The Regents of the University of California. // All rights reserved. See copyright.h for copyright notice and limitation // of liability and disclaimer of war...
07os405
trunk/nachos/c++example/inheritstack.cc
C++
mit
6,276
// stack.cc // Routines to implement a LIFO stack of integers. // // The stack is represented as an array; we return an error // if the caller tries to push more things onto the stack than we have // room for. // // Copyright (c) 1992,1993,1995 The Regents of the University of California. // All rights reserved. See ...
07os405
trunk/nachos/c++example/stack.cc
C++
mit
3,569
// templatestack.h // Data structures for a stack" -- a Last-In-First-Out list -- // of arbitrary things. // // Copyright (c) 1992,1993,1995 The Regents of the University of California. // All rights reserved. See copyright.h for copyright notice and limitation // of liability and disclaimer of warranty provisions. ...
07os405
trunk/nachos/c++example/templatestack.h
C++
mit
1,252
// inheritstack.h // Data structures for a "stack" -- a Last-In-First-Out list of integers. // // We define two separate implementations of stacks, to // illustrate C++ inheritance. // // Copyright (c) 1992,1993,1995 The Regents of the University of California. // All rights reserved. See copyright.h for copyright not...
07os405
trunk/nachos/c++example/inheritstack.h
C++
mit
3,026
// stack.h // Data structures for a "stack" -- a Last-In-First-Out list of integers. // // Copyright (c) 1992,1993,1995 The Regents of the University of California. // All rights reserved. See copyright.h for copyright notice and limitation // of liability and disclaimer of warranty provisions. #ifndef STACK_H // t...
07os405
trunk/nachos/c++example/stack.h
C++
mit
1,399
// templatestack.cc // Routines to implement a LIFO stack of arbitrary things. // // The stack is represented as an array; we return an error // if the caller tries to push more things onto the stack than we have // room for. // // Copyright (c) 1992,1993,1995 The Regents of the University of California. // All rights...
07os405
trunk/nachos/c++example/templatestack.cc
C++
mit
3,921
// list.h // Data structures to manage LISP-like lists. // // Copyright (c) 1992,1993,1995 The Regents of the University of California. // All rights reserved. See copyright.h for copyright notice and limitation // of liability and disclaimer of warranty provisions. #ifndef LIST_H #define LIST_H #include "copyri...
07os405
trunk/nachos/c++example/list.h
C++
mit
919
#ifndef COPYRIGHT_H #define COPYRIGHT_H /* Copyright (c) 1992,1993,1995 The Regents of the University of California. All rights reserved. Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without written agreement is hereby granted, provided that the...
07os405
trunk/nachos/c++example/copyright.h
C
mit
1,224
# NOTE: this is a GNU Makefile. You must use "gmake" rather than "make". # # Makefile for the virtual memory assignment # Defines set up assuming the virtual memory assignment is done before # the file system assignment. If not, use the "filesys first" # defines below. # # Also, if you want to simplify the tra...
07os405
trunk/nachos/code/vm/Makefile
Makefile
mit
29,925
/* * VMManager.cc * * Created on: Dec 28, 2009 * Author: qi * Modified by Hyper: Dec 29 2009 */ #include "system.h" #include "vmmanager.h" VirtualMemoryManager::VirtualMemoryManager() : bitMap(SWAP_SIZE) { fileSystem->Create("SWAP", PageSize * SWAP_SIZE); swapFile = fileSystem->Open("SWAP"); pageI...
07os405
trunk/nachos/code/vm/vmmanager.cc
C++
mit
5,844
/* * VMManager.h * * Created on: Dec 28, 2009 * Author: qi */ #ifndef VMMANAGER_H_ #define VMMANAGER_H_ #include "bitmap.h" #include "addrspace.h" #include "list.h" #define SWAP_SIZE 512 class PhysicalPageInfo{ public : //time AddrSpace * space; int pageTableIndex; }; class DiskPageInfo{ public : Dis...
07os405
trunk/nachos/code/vm/vmmanager.h
C++
mit
1,322
.text .align 2 .globl ThreadRoot ThreadRoot: pushl %ebp movl %esp,%ebp pushl %edx call *%ecx call *%esi call *%edi movl %ebp,%esp popl %ebp ret .comm _eax_save,4 .globl SWITCH SWITCH: movl %eax,_eax_s...
07os405
trunk/nachos/code/vm/swtch.s
Unix Assembly
mit
1,402
// threadtest.cc // Simple test case for the threads assignment. // // Create two threads, and have them context switch // back and forth between themselves by calling Thread::Yield, // to illustratethe inner workings of the thread system. // // Copyright (c) 1992-1993 The Regents of the University of Californ...
07os405
trunk/nachos/code/threads/threadtest.cc
C++
mit
14,457
/* stdarg.h for GNU. Note that the type used in va_arg is supposed to match the actual type **after default promotions**. Thus, va_arg (..., short) is not valid. */ #ifndef _STDARG_H #ifndef _ANSI_STDARG_H_ #ifndef __need___va_list #define _STDARG_H #define _ANSI_STDARG_H_ #endif /* not __need___va_list */ #...
07os405
trunk/nachos/code/threads/stdarg.h
C
mit
5,794