View shader.vert.glsl
//VERTEX SHADER
#version 400
//*** Uniform block definitions ************************************************
//*** Input ********************************************************************
//*** Output *******************************************************************
//*** Uniforms *****************************************************************
View shader.frag.glsl
//FRAGMENT SHADER
#version 400
//*** Uniform block definitions ************************************************
//*** Input ********************************************************************
//*** Output *******************************************************************
//*** Uniforms *****************************************************************
View mediaqueries.css
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
View second_applet_window.pde
import controlP5.*;
ControlP5 cp5;
void setup()
{
size(800, 800, P2D);
cp5 = new ControlP5(this);
cp5.addSlider("slider")
.setRange(0, 200)
View controlP5_example.pde
import controlP5.*;
import javax.swing.JFrame;
PFrame f = null;
Applet s;
ControlP5 cp5;
void setup()
{
View Simple Cube
void SimpleCube::init()
{
//front
normals.emplace_back(glm::vec3(0,0,1));
vertices.push_back(glm::vec3(-0.5,-0.5,0.5));
vertices.push_back(glm::vec3(0.5,-0.5,0.5));
vertices.push_back(glm::vec3(0.5,0.5,0.5));
vertices.push_back(glm::vec3(-0.5,0.5,0.5));
//side right
normals.emplace_back(glm::vec3(1,0,0));
View gist:3433b2b15128b91cab4c
https://www.dropbox.com/s/l494et4memth44a/WindowsNoEditor.7z?dl=0
View CSS3 Keyframe Animation Boilerplate
/* Standard */
@keyframes fadeIn {
to {opacity: 1.0;}
}
/* Webkit-Based (Chrome, Safari) */
@-webkit-keyframes fadeIn {
to {opacity: 1.0;}
}
View bootstrap3-vertical-menu.css
/*
As proposed by http://www.jonathanbriehl.com/
*/
/* make sidebar nav vertical */
@media (min-width: 768px) {
.sidebar-nav .navbar .navbar-collapse {
padding: 0;
max-height: none;
}
.sidebar-nav .navbar ul {
View .htaccess
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/