List of freely available resources to study computer graphics programming.
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
| // The setup | |
| // AVAX Balance | |
| // curl -X POST --data '{ | |
| // "jsonrpc":"2.0", | |
| // "id" : 1, | |
| // "method" :"avm.getBalance", | |
| // "params" :{ | |
| // "address":"X-EKpEPX56YA1dsaHBsW8X5nGqNSwJ7JrWH", | |
| // "assetID": "AVA" | |
| // } |
Install, build and debug a react native app in WSL2 (Windows Subsystem for Linux) and Ubuntu.
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
| import React, { useState, useEffect } from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import { Image, StyleSheet, Dimensions } from 'react-native'; | |
| import FastImage from 'react-native-fast-image'; | |
| import ImageZoom from 'react-native-image-pan-zoom'; | |
| // ZoomableImage component renders a zoomable FastImage the size of the screen dimensions. | |
| const dims = Dimensions.get('window'); |
This help only covers the parts of GLSL ES that are relevant for Shadertoy. For the complete specification please have a look at GLSL ES specification
Version: WebGL 2.0
Arithmetic: ( ) + - ! * / %
Logical/Relatonal: ~ < > <= >= == != && ||
Bit Operators: & ^ | << >>
Comments: // /* */
Types: void bool int uint float vec2 vec3 vec4 bvec2 bvec3 bvec4 ivec2 ivec3 ivec4 uvec2 uvec3 uvec4 mat2 mat3 mat4 mat?x? sampler2D, sampler3D samplerCube
Format: float a = 1.0; int b = 1; uint i = 1U; int i = 0x1;
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
| // img | |
| // { | |
| // uri: '"assets-library://asset/asset.JPG?id=SOME_ID&ext=JPG"', | |
| // md5: "some md5" | |
| // } | |
| // copy into cache dir first | |
| const path = FileSystem.cacheDirectory + img.md5 | |
| await FileSystem.copyAsync({ | |
| from: img.uri, |
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
| cd /home/<user>/ | |
| sudo apt-get install unzip | |
| wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip | |
| unzip sdk-tools-linux-4333796.zip -d Android | |
| rm sdk-tools-linux-4333796.zip | |
| sudo apt-get install -y lib32z1 openjdk-8-jdk | |
| export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | |
| export PATH=$PATH:$JAVA_HOME/bin | |
| printf "\n\nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64\nexport PATH=\$PATH:\$JAVA_HOME/bin" >> ~/.bashrc | |
| cd Android/tools/bin |
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
| /*Please do support www.bitshiftprogrammer.com by joining the facebook page : fb.com/BitshiftProgrammer | |
| Legal Stuff: | |
| This code is free to use no restrictions but attribution would be appreciated. | |
| Any damage caused either partly or completly due to usage this stuff is not my responsibility*/ | |
| Shader "BitshiftProgrammer/Liquid" | |
| { | |
| Properties | |
| { | |
| _Colour ("Colour", Color) = (1,1,1,1) | |
| _FillAmount ("Fill Amount", Range(-10,10)) = 0.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
| import { decorate, observable, flow, onBecomeObserved, onBecomeUnobserved } from 'mobx' | |
| import { log } from './log' | |
| const APPID = '<secret>' | |
| export class City { | |
| location | |
| temperature | |
| interval |
NewerOlder
