Skip to content

Instantly share code, notes, and snippets.

View myanmarlinks's full-sized avatar

Myanmar Links myanmarlinks

View GitHub Profile
@myanmarlinks
myanmarlinks / index.html
Last active July 2, 2017 03:51
CSS FlexBox Start
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS BOX</title>
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="container">
@myanmarlinks
myanmarlinks / style.css
Last active July 2, 2017 03:52
CSS FlexBox Start
@import url('https://fonts.googleapis.com/css?family=Zilla+Slab');
body {
font-family: 'Zilla Slab', serif;
color: #111;
line-height: 1.2;
}
#container {
width: 1080px;
@myanmarlinks
myanmarlinks / index.html
Created July 2, 2017 07:08
CSS FlexBox Second
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS BOX</title>
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="container">
@myanmarlinks
myanmarlinks / style.css
Last active July 2, 2017 07:19
CSS FlexBox Second
@import url('https://fonts.googleapis.com/css?family=Zilla+Slab');
body {
font-family: 'Zilla Slab', serif;
color: #111;
line-height: 1.2;
}
#container {
width: 1080px;
@myanmarlinks
myanmarlinks / index.php
Created July 4, 2017 04:46
Output Buffering Step 1
<?php
ob_start();
echo "Hello World <br>";
setcookie("test", 'testcookie');
echo "How are you my friend! <br>";
ob_end_flush();
@myanmarlinks
myanmarlinks / index.php
Created July 4, 2017 14:50
Output Buffering Second
<?php
function testFuncOne($buffer) {
return (str_replace("Apple", "Orange", $buffer));
}
ob_start("testFuncOne");
echo "Hello Apple <br>";
echo "How are you my Apple! <br>";
@myanmarlinks
myanmarlinks / index.php
Created July 4, 2017 15:07
Output Bufferning Third
<?php
ob_start("ob_gzhandler");
echo "Hello Apple <br>";
echo "How are you my Apple! <br>";
echo "Another, How are you? <br>";
echo "Testing One Apple Three <br>";
ob_end_flush();
?>
@myanmarlinks
myanmarlinks / index.php
Created July 4, 2017 15:14
Output Buffering Fourth
<?php
ob_start();
echo "How are you and where do you live? ";
echo "I live in Yangon";
$out1 = ob_get_contents();
echo "How do you do?";
@myanmarlinks
myanmarlinks / index.php
Created July 4, 2017 15:21
Output Buffering Five
<?php
ob_start();
echo "How are you and where do you live? ";
echo "I live in Yangon";
echo "How do you do?";
echo "where do you live";
@myanmarlinks
myanmarlinks / Category.java
Last active July 11, 2017 17:24
Awesome Realm Android
package net.myanmarlinks.awesomerealm.model;
import io.realm.RealmObject;
/**
* Created by soethihanaung on 7/7/17.
*/
public class Category extends RealmObject {
private String id;