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
| // A simple Unity C# script for orbital movement around a target gameobject | |
| // Author: Ashkan Ashtiani | |
| // Gist on Github: https://gist.github.com/3dln/c16d000b174f7ccf6df9a1cb0cef7f80 | |
| using System; | |
| using UnityEngine; | |
| namespace TDLN.CameraControllers | |
| { | |
| public class CameraOrbit : MonoBehaviour |
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
| // A Simple Script to change the materials on a game object and all the nested children | |
| // Author: Ashkan Ashtiani | |
| // Github: https://github.com/3dln/material_changer | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| namespace TDLN | |
| { | |
| public class MaterialChanger : MonoBehaviour |
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
| Shader "DepthMask" { | |
| SubShader { | |
| // Render the mask after regular geometry, but before masked geometry and | |
| // transparent things. | |
| Tags {"Queue" = "Geometry-10" } | |
| // Turn off lighting, because it's expensive and the thing is supposed to be | |
| // invisible anyway. |
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
| using UnityEngine; | |
| using System.Collections; | |
| public class ModelAnimation : MonoBehaviour { | |
| public bool isAnimated = false; | |
| public bool isRotating = false; | |
| public bool isFloating = false; | |
| public bool isScaling = false; |
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
| from . import app | |
| from flask.ext.sqlalchemy import get_debug_queries | |
| if app.debug: | |
| app.after_request(sql_debug) | |
| def sql_debug(response): | |
| queries = list(get_debug_queries()) | |
| query_str = '' |
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
| <VirtualHost *> | |
| ServerName example.com | |
| WSGIDaemonProcess www user=max group=max threads=5 | |
| WSGIScriptAlias / /home/max/Projekte/flask-upload/flask-upload.wsgi | |
| <Directory /home/max/Projekte/flask-upload> | |
| WSGIProcessGroup www | |
| WSGIApplicationGroup %{GLOBAL} | |
| Order deny,allow |
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 express = require('express') | |
| const volleyball = require('volleyball') | |
| const app = express() | |
| app.use(volleyball) | |
| app.get('/', (req, res) => { | |
| res.json({ | |
| message: '🦄 Hello World! 🦄', |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Webpack 5 tutorial</title> | |
| <script src="https://unpkg.com/[email protected]"></script> | |
| </head> | |
| <body> | |
| <script src="./src/index.js"></script> | |
| </body> | |
| </html> |
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
| function component() { | |
| const element = document.createElement('div') | |
| element.innerHTML = _.join(['Hello', 'Webpack'], ' ') | |
| return element | |
| } | |
| document.body.append(component()) |
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 path = require('path'); | |
| module.exports = { | |
| entry: './source/app.js', | |
| output: { | |
| filename: 'app.bundle.js', | |
| path: path.resolve(__dirname, 'build'), | |
| } | |
| }; |
OlderNewer