2017-07-16
I encountered this error shortly after installing the Google Cloud SDK. It made no sense, I was in the correct directory and entered the same command as usual:
dev_appserver.py app.yaml| #!/usr/bin/env python | |
| import time | |
| import sys | |
| import getpass | |
| from rgbmatrix import RGBMatrix, RGBMatrixOptions | |
| import cv2 as cv | |
| options = RGBMatrixOptions() | |
| options.hardware_mapping = 'regular' |
| #!/usr/bin/env python3 | |
| ''' | |
| Outputs a youtube playlist, one link per line | |
| If a playlist link is passed as a parameter, it outputs all the links contained in that playlist. | |
| If a search string is passed, it downloads an auto-generated Youtube Mix playlist for the first result of that search term. | |
| If a single Youtube video link is passed, it downloads an auto-generated Youtube Mix playlist for that link. | |
| This script can be piped directly to a player that supports youtube such as mpv | |
| Examples: |
| // | |
| // Basic instrumentation profiler by Cherno | |
| // Usage: include this header file somewhere in your code (eg. precompiled header), and then use like: | |
| // | |
| // Instrumentor::Get().BeginSession("Session Name"); // Begin session | |
| // { | |
| // InstrumentationTimer timer("Profiled Scope Name"); // Place code like this in scopes you'd like to include in profiling | |
| // // Code | |
| // } |
| FROM golang:alpine | |
| ADD ./src /go/src/app | |
| WORKDIR /go/src/app | |
| ENV PORT=3001 | |
| CMD ["go", "run", "main.go"] |
| #include <stdio.h> | |
| #include <CL/cl.h> | |
| #define MAX_PLATFORM_SIZE 256 | |
| #define MAX_DEVICE_SIZE 256 | |
| int main() | |
| { | |
| cl_device_id devices[256]; |
| //SDL2 flashing random color example | |
| //Should work on iOS/Android/Mac/Windows/Linux | |
| #include <SDL.h> | |
| #include <SDL_opengl.h> | |
| #include <stdlib.h> //rand() | |
| static bool quitting = false; | |
| static float r = 0.0f; |