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
use std::env; | |
use nix::unistd::fork; | |
use std::process; | |
fn main() { | |
let args: Vec<String> = env::args().collect(); | |
if args.len() < 2 { | |
eprintln!("Not enough argument"); | |
return; | |
} |
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 gvfraction | |
import java.lang.IllegalStateException | |
import java.lang.reflect.InvocationTargetException | |
import kotlin.reflect.KClass | |
object FractionFactory { | |
var creator: KClass<FractionOperator>? | |
// var instance: FractionFactory |
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
cmake_minimum_required(VERSION 3.14) | |
project(Fraction) | |
set(CMAKE_CXX_COMPILER clang++) | |
set(CMAKE_CXX_STANDARD 17) | |
set(CMAKE_CXX_FLAGS "-g -Wall") | |
include_directories(.) |
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
#!/usr/local/bin/python3 | |
""" | |
This program parses a zipped assignment downloaded from Bb, | |
creates a new subdirectory for the assignment, and unzip | |
all the files into subdirectories named after the student userids | |
""" | |
import zipfile | |
import sys |
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
#container { | |
background: lightblue; | |
} | |
section { | |
border: solid 2px black; | |
border-radius: 8px; | |
margin: 4px; | |
padding: 8px; | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
<title>Hello React</title> | |
<script src="https://unpkg.com/react@16/umd/react.development.js"></script> | |
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> | |
<script src="https://unpkg.com/[email protected]/babel.js"></script> |
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 <signal.h> | |
void handler(int x) { | |
printf ("Got the signal\n"); | |
} | |
int main() { | |
char val[50]; | |
struct sigaction act; |
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
var MyCSSRules; | |
describe('Web Page Homework', () => { | |
const MY_HTML_FILE = 'completed.html'; | |
var mTable; | |
var page, pageStr; | |
var cssURL; | |
const findSelectorWithPropAndValue = (prop, value) => { | |
// console.debug(`Looking for selector with property ${prop}`) |
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
<?php | |
session_start(); | |
?> | |
<head> | |
<link rel="stylesheet" href="imovenlater.css"> | |
</head> | |
<body> | |
<h1 class="logo">i-Move-n-Later</h1> | |
<?php | |
require_once '/home/dulimarh/dbconfig.php'; |
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
/** | |
* Created by Hans Dulimarta | |
* TODO: Add your name below this line | |
*/ | |
/** | |
* Given the ID of a node {rootId}, find all its descendant elements having | |
* its attribute id set and then change their class to {klazName}. | |
* The function returns the number of such elements found. | |
* |