Skip to content

Instantly share code, notes, and snippets.

View bedaarta's full-sized avatar

Beda Arta bedaarta

View GitHub Profile
@bedaarta
bedaarta / gist:e2ca970514170abad137235e19cd8f01
Created July 31, 2019 03:09
Running ngrok on homestead
ngrok http -host-header=rewrite site.test:80
@bedaarta
bedaarta / _mixins.scss
Created December 5, 2017 07:19
Media queries in my SCSS files to create the key breakpoints with mixins
@mixin media-down($point) {
$bp-smallphone: "(max-width: 480px)";
$bp-phone: "(max-width: 767px)";
$bp-tablet: "(max-width: 991px)";
$bp-desktop: "(max-width: 1199px)";
@if $point == smallphone {
@media #{$bp-smallphone} { @content; }
}
@bedaarta
bedaarta / index.html
Created May 29, 2017 05:56
Fetch data using vue.js
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Fetching Data in VueJs</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
</head>
<body>
@bedaarta
bedaarta / index.html
Last active May 29, 2017 06:01
Retrieve multiple checkbox value with AngularJs
<!DOCTYPE html>
<html ng-app="App">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular.min.js"></script>
<script src="script.js"></script>
</head>
<body>