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\Http\Controllers\Api; | |
use App\Helpers\JsonRequest; | |
use App\Helpers\JsonReturn; | |
use App\Http\Controllers\Controller; | |
use App\Models\Reading; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Validation\Rule; |
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
from config.config import ConfigHolder | |
import requests | |
from jsonschema import validate | |
def get_base_url(api_name): | |
return ConfigHolder.get_configs(api_name)["DOMAIN"] | |
def get(endpoint,headers,params = None,api_name = "CORE"): | |
r = requests.get(get_base_url(api_name) + endpoint, headers = headers, params = params) | |
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 <stdio.h> | |
#include <GL/gl.h> | |
#include <GL/glut.h> | |
#include <math.h> | |
#include <iostream> | |
long long C(int n, int r) { | |
if(r > n / 2) r = n - r; // because C(n, r) == C(n, n - r) |
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
// house.cc | |
#include <GL/gl.h> | |
#include <GL/glut.h> | |
#include <stdio.h> | |
#include <iostream> | |
#include <cstdlib> | |
float camPosX = 5; | |
float camPosy = 13.0f; |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Sat Aug 26 20:40:38 2017 | |
@author: dhaval | |
Updated to KERAS 2 API on Sat Apr 7 9:53:00 2018 | |
@contrib: sohanchy | |
""" |
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> | |
#include <stdlib.h> | |
#include<GL/gl.h> | |
#include <GL/glut.h> | |
#include<math.h> | |
#include<cstring> | |
using namespace std; | |
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> | |
#include <stdlib.h> | |
#include<GL/gl.h> | |
#include <GL/glut.h> | |
#include<math.h> | |
#include<cstring> | |
using namespace std; | |
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
{ | |
"success": true, | |
"page": 1, | |
"pagination": 10, | |
"nextPage": "http://example.com?page=2", | |
"prevPage": "http://example.com?page=1", | |
"data": [ | |
{ | |
"id": 0, | |
"latitude": 23.7118, |
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> | |
#include<GL/gl.h> | |
#include <GL/glut.h> | |
#include <math.h> | |
using namespace std; | |
#define PI 3.1415926535897932384626433832795 | |
float _move = 0.0f; |
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
I = imread('dog.jpg'); | |
I = rgb2gray(I); | |
X = [1 0 0; | |
0 1 0; | |
0 0 1]; | |
Z = sohan_conv(I,X); |