Skip to content

Instantly share code, notes, and snippets.

View ryanvade's full-sized avatar
💭
42

Ryan Owens ryanvade

💭
42
View GitHub Profile
Marker 2
Corrupt JPEG data: 3 extraneous bytes before marker 0xd5
Not estimating the pose
Vector Size 0
Direct Pose Vector
Corrupt JPEG data: 1 extraneous bytes before marker 0xd4
Corrupt JPEG data: 1 extraneous bytes before marker 0xd4
Marker 2
Corrupt JPEG data: 1 extraneous bytes before marker 0xd6
protected function favorited($favorited)
{
return $this->builder->select(DB::raw('*, COUNT(*)'))
->join('favorites', 'images.id', '=', 'favorites.favorable_id')
->where('favorable_type', 'Csb\\Image')
->groupBy('images.file_location')
->orderBy('COUNT(*)', 'DESC');
}
/usr/share/spotify/spotify: /usr/lib/libssl.so.1.0.0: version `OPENSSL_1.0.0' not found (required by /usr/share/spotify/spotify)
/usr/share/spotify/spotify: /usr/lib/libcrypto.so.1.0.0: version `OPENSSL_1.0.0' not found (required by /usr/share/spotify/spotify)
/usr/share/spotify/spotify: /usr/lib/libcurl.so.3: no version information available (required by /usr/share/spotify/spotify)
transforms:
-
header:
seq: 0
stamp:
secs: 1495854431
nsecs: 214225629
frame_id: world
child_frame_id: 2
transform:
@ryanvade
ryanvade / gist:423aa98e604af007829da48e863cab4c
Created April 27, 2017 18:30
User Query with where, orWhere, and whereNotIn
Csb\User::where('name', 'like', $searchTerm)->orWhere('email', 'like', $searchTerm)->whereNotIn('id', Csb\Role::where('name', 'SCIENCE_DASHBOARD')->first()->users()->pluck('user_id'))->get()
@ryanvade
ryanvade / stacked-bars.html
Created April 21, 2017 18:04
Stacked ChartJS Bars Animated
<!doctype html>
<html>
<head>
<title>Stacked Bar Chart</title>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.bundle.js"></script>
<style>
canvas {
-moz-user-select: none;
@ryanvade
ryanvade / gist:4b2680ae099d016ba6a5e5e229d87178
Created February 16, 2017 18:17
install socialite failure
composer require laravel/socialite
Using version ^3.0 for laravel/socialite
./composer.json has been updated
> php artisan clear-compiled
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove laravel/framework v5.2.45
/*
HG7881_Motor_Driver_Example - Arduino sketch
This example shows how to drive a motor with using HG7881 (L9110) Dual
Channel Motor Driver Module. For simplicity, this example shows how to
drive a single motor. Both channels work the same way.
This example is meant to illustrate how to operate the motor driver
and is not intended to be elegant, efficient or useful.
php ./flarum migrate
Migrating Flarum...
Nothing to migrate.
Migrating extension: flarum-approval
Nothing to migrate.
Migrating extension: ryanvade-remove-avatar-baseurl
PHP Fatal error: Uncaught Error: Class 'Schema' not found in /srv/http/cosmoquest/public/forum/vendor/ryanvade/flarum-ext-remove-avatar-baseurl/migrations/2016_10_16_171339_change_avatar_url_length.php:8
Stack trace:
#0 [internal function]: Illuminate\Filesystem\Filesystem->{closure}(Object(Illuminate\Database\Schema\MySqlBuilder))
#1 /srv/http/cosmoquest/public/forum/vendor/illuminate/container/Container.php(507): call_user_func_array(Object(Closure), Array)
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Schema\Builder;
return [
'up' => function (Builder $schema) {
Schema::table('users', function($table) {
$table->string('avatar_path'. 160)->change();
});