This file contains 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 <stdlib.h> | |
#include <math.h> | |
long decimalToBinary( long integerInDecimal); | |
long decimalToOctal( long integerInDecimal); | |
void decimalToHexadecimal( long integerInDecimal); | |
int main() { | |
long integerInDecimal; | |
char option = 'y'; |
This file contains 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
Here is a quickly way to install PHP 7.1 on Mac | |
Make sure you have installed brew | |
`brew update` | |
`brew install homebrew/php/php71` | |
`export PATH="$(brew --prefix( homebrew/php/php71)/bin:$PATH" ` | |
Alternatively you can add `export PATH="$(brew --prefix( homebrew/php/php71)/bin:$PATH" ` in to .bashrc or .zshrc to permenatly change the path to PHP installation |
This file contains 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
<!-- | |
Author: Khem Puthea | |
--> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Page Title</title> | |
</head> | |
<body> |
This file contains 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
import React, { Component } from 'react'; | |
import ReactDOM from 'react-dom'; | |
export default class Example extends Component { | |
render() { | |
return ( | |
<div className="container"> | |
<div className="row"> | |
<div className="col-md-8 col-md-offset-2"> | |
<div className="panel panel-default"> |
This file contains 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
@if($errors->has()) | |
@foreach ($errors->all() as $error) | |
<div>{{ $error }}</div> | |
@endforeach | |
@endif |
This file contains 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> | |
<head> | |
<meta charset=utf-8 /> | |
<title>JS DOM paragraph style</title> | |
</head> | |
<body> | |
<p id ='text'>JavaScript Exercises - by Mr Khem Puthea</p> | |
<div> | |
<button id="jsStyle" |
This file contains 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> | |
<head> | |
<meta charset=utf-8 /> | |
<title>JS DOM paragraph style</title> | |
</head> | |
<body> | |
<p id ='text'>JavaScript Exercises - by Mr Khem Puthea</p> | |
<div> | |
// use onclick action |
This file contains 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> | |
<head> | |
<style> | |
.democlass { | |
color: red; | |
} | |
</style> | |
</head> | |
<body> |
This file contains 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
/* | |
This .scss loop will create "margin helpers" and "padding helpers" for use in your web projects. | |
It will generate several classes such as: | |
.m-r-10 which gives margin-right 10 pixels. | |
.m-r-15 gives MARGIN to the RIGHT 15 pixels. | |
.m-t-15 gives MARGIN to the TOP 15 pixels and so on. | |
.p-b-5 gives PADDING to the BOTTOM of 5 pixels | |
.p-l-40 gives PADDING to the LEFT of 40 pixels |
OlderNewer