This file contains hidden or 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
| function isOnScreen(elem) { | |
| // if the element doesn't exist, abort | |
| if( elem.length == 0 ) { | |
| return; | |
| } | |
| var $window = jQuery(window) | |
| var viewport_top = $window.scrollTop() | |
| var viewport_height = $window.height() | |
| var viewport_bottom = viewport_top + viewport_height | |
| var $elem = jQuery(elem) |
This file contains hidden or 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
| <?php | |
| namespace App\Http\Controllers; | |
| use App\Contact; | |
| use Illuminate\Http\Request; | |
| class ContactController extends Controller | |
| { |
This file contains hidden or 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
| function ballToOver(totalBall) { | |
| return Number(Math.floor(totalBall / 6) + '.' + totalBall % 6) | |
| } | |
| /* | |
| Example: | |
| console.log(ballToOver(15)) | |
| output: 2.3 | |
| */ |
This file contains hidden or 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
| <?php | |
| /** | |
| * A class to create simple custom routes. | |
| * | |
| * Example usage: | |
| * | |
| * $theme_routes = new CustomRoutes(); | |
| * $theme_routes->addRoute( | |
| * |
This file contains hidden or 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
| @extends('app') | |
| @section('content') | |
| <div class="container"> | |
| <div class="row"> | |
| <div class="col-md-12"> | |
| <h3>Todo/Edit</h3> | |
| <form action="{{route('postEditRoute',$data->id)}}" method="POST" class="form-inline"> | |
| <input type="hidden" name="_token" value="{{ csrf_token() }}"> | |
This file contains hidden or 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<conio.h> | |
| #include<graphics.h> | |
| void main() | |
| { | |
| int gd,gm; | |
| gd=DETECT; | |
| initgraph(&gd, &gm,"C:\\TC\\bgi"); | |
| line(100,100,200,100); | |
| getch(); |
This file contains hidden or 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
| @extends('app') | |
| @section('content') | |
| <div class="container"> | |
| <div class="row"> | |
| <div class="col-md-10"> | |
| <form action="" method="POST" class="form-inline"> | |
| <input type="hidden" name="_token" value="{{ csrf_token() }}"> | |
| <p>Work name</p> | |
| <p> | |
| <input type="text" class="form-control" name="workName"/> |