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
`frag.glsl` | |
uniform sampler2D tex_normal; | |
`.cpp` | |
glUniform1i(glGetUniformLocation(pid, "tex_normal"), 1); | |
auto c = glGetUniformLocation(pid, "tex_normal"); | |
// c = 2 |
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 "cinder/app/App.h" | |
#include "cinder/app/RendererGl.h" | |
#include "cinder/gl/gl.h" | |
using namespace ci; | |
using namespace ci::app; | |
using namespace std; | |
GLfloat cube_vertices[] = { | |
// front |
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
/* | |
referring to this link: https://www.khronos.org/opengl/wiki/Vertex_Specification_Best_Practices | |
"Formatting VBO data": | |
does the following: | |
*/ | |
GLuint v, n, c; |
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 <iostream> | |
#include <vector> | |
class Subject; | |
class Observer | |
{ | |
public: | |
Observer(); | |
virtual void update(int subjVal) = 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
// seen at https://conference.awwwards.com/berlin | |
var f = ["background: linear-gradient(135deg, rgba(248, 97, 97, 1) 0%,rgba(105, 81, 255, 1) 100%);", "color: white", "padding: 10px 20px", "line-height: 35px"].join(";"); | |
console.log("%cAwwwards Conf 2018 | coded by Andrea Gottardi @ Adoratorio", f) |
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
# Theme based on Bira theme from oh-my-zsh: https://github.com/robbyrussell/oh-my-zsh/blob/master/themes/bira.zsh-theme | |
# Some code stolen from oh-my-fish clearance theme: https://github.com/bpinto/oh-my-fish/blob/master/themes/clearance/ | |
# I replaced the ruby version with node version. - John | |
function __user_host | |
set -l content | |
if [ (id -u) = "0" ]; | |
echo -n (set_color --bold red) | |
else |
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 axios from 'axios' | |
export default class WikiArtClient { | |
... | |
} |
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
const persistConfig = { | |
key: 'root', | |
storage, | |
whitelist: ['user', 'BrowseScreen', 'wikiArt'], | |
} | |
const persistedReducer = persistReducer(persistConfig, AppReducer) | |
this.store = Reactotron.createStore( |
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 { TabNavigator } from 'react-navigation' | |
import Ionicons from 'react-native-vector-icons/Ionicons' | |
import { hook } from 'cavy' | |
class Icon extends Component { | |
render() { | |
const { navigation, generateTestHook, routeName... } = this.props | |
return <Ionicons ref={generateTestHook(`Navigation.${routeName}`)} onPress={() => navigation.navigate(routeName)} .../> | |
} | |
} |
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
Show hidden characters
{ | |
"presets": ["react-native"], | |
"plugins": [ | |
[ | |
"module-resolver", | |
{ | |
"alias": { | |
"@assets": "./assets", | |
"@src": "./src", | |
"@components": "./src/components", |