Skip to content

Instantly share code, notes, and snippets.

View liyocee's full-sized avatar

Liyosi Collins liyocee

View GitHub Profile
@liyocee
liyocee / Hello World Html
Created January 3, 2023 07:47
Hello World Markdown.
<html>
<head>
<style>
h1 {
font-family: Calibri;
}
</style>
</head>
<body>
<h1>Hello World!</h1>

Hello World

This is content converted from Markdown!

Here's a JSON sample:

{
  "foo": "bar"
}
@liyocee
liyocee / cstock.txt
Last active January 2, 2020 09:10
Links
https://filebin.net/llmaunfacwt94cvc
@liyocee
liyocee / gist:8884c5cb2cb881ab9380
Created January 7, 2016 07:06
sublime_settings
{
"always_show_minimap_viewport": true,
"atomic_save": true,
"bold_folder_labels": true,
"caret_style": "phase",
"close_windows_when_empty": true,
"color_inactive_tabs": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"dictionary": "Packages/Language - English/en_GB.dic",
"draw_minimap_border": false,
@liyocee
liyocee / php_utils
Created November 23, 2013 13:01
Php Common Util Functions
<?php
/**
* This class stores common functions that can be used globally
* @author Liyosi
*
*/
class Common
{
/**
* This function gets the Ip of visitors
@liyocee
liyocee / android-location
Last active December 29, 2015 04:19
Android : Getting User 's location using GPS/ WIFI
package com.liyosi.collo
import android.app.AlertDialog;
import android.app.Service;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
@liyocee
liyocee / Money.java
Created October 25, 2012 13:09
Sharing money amongst friends.
import java.util.List;
import java.util.ArrayList;
import java.io.*;
import java.util.StringTokenizer;
public class Money{
private List<String>allMembers;
private List<String>allData;
private List<Member>members;
private static String inFile="gift1.in";
private static String outFile="gift1.out";
@liyocee
liyocee / Problem0.java
Created October 20, 2012 10:13
Increments the least significant element of an array with any arbitrary integer
/*
* Write an algorithm that , given an array input (of integers),
increments the least significant element with any arbitrary integer.
f this element exceeds 9, carry accordingly to the next element, assign the remainder to the current element.
Proceed until the addition stops. Extend the array as necessary to accomodate special cases :)
Example: [1,2,9,9] + 1 = [1,3,0,0]
* */
public class Problem1{