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
$medium_url = "https://api.rss2json.com/v1/api.json?rss_url=https://medium.com/feed/" . $handle; |
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
#![feature(proc_macro_hygiene, decl_macro)] | |
#[macro_use] | |
extern crate rocket; | |
#[macro_use] | |
extern crate rocket_contrib; | |
#[macro_use] | |
extern crate serde_derive; | |
use rocket_contrib::json::{Json, JsonValue}; |
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
#[derive(Deserialize)] | |
struct RegisterData { | |
username: String, | |
password: String, | |
email: String, | |
} | |
#[post("/register", format = "json", data = "<data>")] | |
fn register(data: JSON<ResigterData> ) -> JsonValue { | |
json!({"success": data.email}) | |
} |
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] | |
name = "microgram_server" | |
version = "0.1.0" | |
authors = ["mike820324 <[email protected]>"] | |
edition = "2018" | |
[dependencies] | |
rocket = "0.4.0" | |
rocket_contrib = "0.4.0" | |
serde = "1.0.86" | |
serde_derive = "1.0.86" |
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
#![feature(proc_macro_hygiene, decl_macro)] | |
#[macro_use] | |
extern crate rocket; | |
#[macro_use] | |
extern crate rocket_contrib; | |
#[macro_use] | |
extern crate serde_derive; | |
#[post("/register")] | |
fn register() -> &'static str { |
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
CC := gcc | |
LD := ld | |
ASFLAGS := -c | |
LDFLAGS := -T link.ld | |
all: boot_32.bin | |
boot_32.bin: boot_32.o | |
@${LD} ${LDFLAGS} | |
@echo "LINK $@" |
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 <linux/linkage.h> | |
#include <linux/kernel.h> | |
#include <linux/sched.h> | |
#include <linux/mm.h> | |
#include <asm-i386/page.h> | |
#include <asm-i386/pgtable.h> | |
asmlinkage long sys_project(unsigned long pid1, unsigned long pid2){ | |
struct vm_area_struct *vm; /* loop counter to loop through all vm section */ |
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 <linux/module.h> | |
#include <linux/printk.h> | |
#include <linux/fs.h> | |
#include <linux/sched.h> | |
#include <asm/unistd.h> | |
#include <asm/pgtable_types.h> | |
#include <linux/highmem.h> | |
#include "hook_function_ptr.h" |
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 ce1002.a2.ta; | |
import java.util.Scanner; | |
public class A2 { | |
public static void main(String[] args) { | |
Scanner input = new Scanner( System.in ); | |
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 ce1002.a2.s102522042; | |
import java.util.Scanner; | |
public class A2 { | |
public static void main(String[] args) { | |
Scanner input = new Scanner( System.in ); | |