Skip to content

Instantly share code, notes, and snippets.

View NoelMacwan's full-sized avatar
🌴
On vacation

Noel Macwan NoelMacwan

🌴
On vacation
View GitHub Profile
# This program fetches capitals file from working directory,
# converts 'list' which has list of countries and 'dict' which maps countries and its capitals.
# The list of countries will be shuffled and user will be asked to its capital
import random
c=0
f = open("capitals.txt", "r+")
str = f.read();
@NoelMacwan
NoelMacwan / fcfs.c
Created September 27, 2016 00:39
First Come First Serve (FCFS) in C
#include <stdio.h>
int main() {
int i,j,idle,p;
int at[10], bt[10],ct[10],wt[10],tat[10];
int tot_tat=0,tot_wt=0;
float avg_tat=0,avg_wt=0;
printf("Enter the no process: ");
scanf("%d",&p);
@NoelMacwan
NoelMacwan / crosswalkview.md
Created June 10, 2016 07:47 — forked from butelo/crosswalkview.md
How to use CrossWalk runtime within an Android application

So, what is crosswalk and why do I care? Take a look at the website: https://crosswalk-project.org/

CrossWalk is a HTML5 runtime, you can use it to create HTML5 applications with 'native features' You can use CrossWalk to create HTML5-only applications for Android (x86 and arm architectures) and Tizen but you can also use CrossWalk as a View within an android project.

This means you can replace Android WebView with XWalkView and get some extra features like:

@NoelMacwan
NoelMacwan / ferrari_manifest.xml
Created September 11, 2015 12:33
Manifest for Xiaomi Mi 4i for compiling TeslaOS
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="device/xiaomi/ferrari" name="TeslaOS-devices/android_device_xiaomi_ferrari" remote="github" revision="lp5.1" />
<project path="device/qcom/common" name="CyanogenMod/android_device_qcom_common" remote="github" revision="cm-12.1" />
<project path="vendor/xiaomi/ferrari" name="dh-harald/android_vendor_xiaomi_ferrari" remote="github" revision="cm-12.1" />
<project path="external/mm-dash" name="CyanogenMod/android_external_mm-dash" remote="github" revision="cm-12.1" />