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
# pip install tmdbsimple | |
# pip install requests | |
# python3 main.py | |
import tmdbsimple as tmdb | |
import json | |
import os | |
import requests | |
local = False |
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 <iostream> | |
#define ARRMAX 100 | |
using namespace std; | |
class LinkedList{ | |
private: | |
struct node{ | |
int info[ARRMAX]; | |
node* next; |
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
@yield('navbar', \View::make('dashboard.components.navbar')) |
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->any()) | |
@foreach ($errors->all() as $error) | |
<div class="alert alert-danger"> | |
{{$error}} | |
</div> | |
@endforeach | |
@endif | |
@if(session('success')) | |
<div class="alert alert-success"> |
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
# ---------------------- | |
# Git Command Aliases | |
# ---------------------- | |
alias ga='git add' | |
alias gaa='git add .' | |
alias gaaa='git add --all' | |
alias gc='git commit -m' | |
alias gs='git status' | |
alias gr='git remote add origin' | |
alias gp='git push origin master' |
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
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Support\Facades\Schema; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Register any application services. | |
* | |
* @return void |
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
<?php | |
function imagecreatefromsource($source){ | |
$info = getimagesize($source); | |
if ($info['mime'] == 'image/jpeg') | |
return imagecreatefromjpeg($source); | |
elseif ($info['mime'] == 'image/gif') | |
return imagecreatefromgif($source); | |
elseif ($info['mime'] == 'image/png') | |
return imagecreatefrompng($source); |
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
<?php | |
// Retrieve JPEG width and height without downloading/reading entire image. | |
function getjpegsize($img_loc) { | |
$handle = fopen($img_loc, "rb") or die("Invalid file stream."); | |
$new_block = NULL; | |
if(!feof($handle)) { | |
$new_block = fread($handle, 32); | |
$i = 0; | |
if($new_block[$i]=="\xFF" && $new_block[$i+1]=="\xD8" && $new_block[$i+2]=="\xFF" && $new_block[$i+3]=="\xE0") { | |
$i += 4; |
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
.horizontal-container { | |
display: flex; | |
flex-wrap: nowrap; | |
overflow-x: auto; | |
} | |
.horizontal-container .scrollable-item { | |
flex: 0 0 auto; | |
} |
NewerOlder