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
| """ Machine Learning Recipe """ | |
| # pylint: disable=C0103 | |
| # pylint: disable=E0401 | |
| # pylint: disable=maybe-no-member | |
| # Python 2/3 compatibility | |
| from __future__ import print_function | |
| import numpy as np | |
| import cv2 |
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
| // (c) Denis Trofimov 2017 | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using SFML.Graphics; | |
| using SFML.Window; | |
| using SFML.System; | |
| namespace Snake |
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
| #version 120 | |
| //#define NSAMPLES 8 | |
| #define NSAMPLES 16 | |
| //#define NSAMPLES 32 | |
| #define PI 3.14159265359 | |
| varying vec2 fTexcoord; |
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
| ; | |
| ; Optimize | |
| r.DefaultFeature.MotionBlur=False | |
| r.LightFunctionQuality=0 | |
| r.ShadowQuality=0 | |
| r.Shadow.CSM.MaxCascades=1 | |
| r.Shadow.MaxResolution=256 | |
| r.Shadow.RadiusThreshold=0.1 | |
| r.Shadow.DistanceScale=0.6 | |
| r.Shadow.CSM.TransitionScale=0 |
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
| public class Dog { | |
| String m_name; | |
| public Dog(String string) { | |
| m_name = string; | |
| } | |
| String getName(){ | |
| return m_name; | |
| } |
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
| uniform vec2 lightpos; | |
| uniform vec3 lightColor; | |
| uniform float screenHeight; | |
| uniform vec3 lightAttenuation; | |
| uniform float radius; | |
| uniform sampler2D texture; | |
| void main() | |
| { |
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
| // Печать с двух сторон (выводит страницы на распечатку) | |
| // | |
| // Программу можно запустить на https://jsfiddle.net/ | |
| // Вставьте этот javascript код, нажмите F12 и кнопку Run | |
| // Меняйте переменные side, startPage, endPage | |
| // | |
| // Печать по диапозону [startPage;endPage] | |
| // Сначала печатаем все страницы с side=1 | |
| // Вставляем распечатанную кипу в принтер | |
| // Текст должен быть верх ногами и чистой сторой к нам |
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 "Model.hpp" | |
| bool core::ModelLoader::loadModel(const char* fp, Model* m) | |
| { | |
| core::log("Loading " + (std::string)fp, core::green); | |
| Assimp::Importer importer; // used to import the model | |
| const aiScene* scene = importer.ReadFile(fp, | |
| aiProcess_Triangulate | |
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 <xlnt/xlnt.hpp> | |
| #include <iostream> | |
| void create() { | |
| xlnt::workbook wb; | |
| xlnt::worksheet ws = wb.active_sheet(); | |
| ws.cell("A1").value(5); | |
| ws.cell("B2").value("string data"); | |
| ws.cell("C3").formula("=RAND()"); | |
| ws.merge_cells("C3:C4"); |
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
| <ItemGroup> | |
| <Object Include="D:\Tensorflow\tensorflow-master\tensorflow\contrib\cmake\build\tf_core_lib.dir\$(Configuration)\arena.obj"> | |
| <Filter>Object Libraries</Filter> | |
| </Object> | |
| <Object Include="D:\Tensorflow\tensorflow-master\tensorflow\contrib\cmake\build\tf_core_lib.dir\$(Configuration)\bitmap.obj"> | |
| <Filter>Object Libraries</Filter> | |
| </Object> | |
| <Object Include="D:\Tensorflow\tensorflow-master\tensorflow\contrib\cmake\build\tf_core_lib.dir\$(Configuration)\coding.obj"> | |
| <Filter>Object Libraries</Filter> | |
| </Object> |