Revision: 06.08.2023, https://compute.toys/view/407
fn sdSphere(p: vec3f, r: f32) -> f32 {
return length(p) - r;
}Revision: 06.08.2023, https://compute.toys/view/407
fn sdSphere(p: vec3f, r: f32) -> f32 {
return length(p) - r;
}| // This script is meant to import Google Maps starred places into | |
| // another Google account. | |
| // Given a geoJSON file of Google Maps starred places (places.json) | |
| // exported by Google takeout (account backup) this script should | |
| // open each place URL and manually click save. | |
| // Upon first run, it's best to stop it and manually login to your | |
| // Google account otherwise you'll run into a non-verified device | |
| // issue. Run again and it should continue through with problems. |
| ScriptableObject Icon | |
| _Popup | |
| _Help | |
| Clipboard | |
| SocialNetworks.UDNOpen | |
| SocialNetworks.Tweet | |
| SocialNetworks.FacebookShare | |
| SocialNetworks.LinkedInShare | |
| SocialNetworks.UDNLogo | |
| animationvisibilitytoggleoff |
| #!/bin/bash | |
| # Heith Seewald 2012 | |
| # Garoe Dorta 2015 | |
| # Luca Weiss 2015 | |
| # Also based on https://gist.github.com/MichaelLawton/ee27bf4a0f591bed19ac | |
| # Feel free to extend/modify to meet your needs. | |
| #### Lets run a few checks to make sure things work as expected. | |
| #Make sure we’re running with root permissions. | |
| if [ `whoami` != root ]; then |
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """This module's docstring summary line. | |
| This is a multi-line docstring. Paragraphs are separated with blank lines. | |
| Lines conform to 79-column limit. | |
| Module and packages names should be short, lower_case_with_underscores. | |
| Notice that this in not PEP8-cheatsheet.py |
| [alias] | |
| grep-add = "!sh -c 'git ls-files -m -o --exclude-standard | grep $1 | xargs git add' -" | |
| grep-add-patch = "!sh -c 'git add -p `git ls-files -m -o --exclude-standard | grep $1`' -" |
La méthode présentée ici permet d'installer un site Django sur un hébergement mutualisé OVH.
Lisez d'abord le fichier README puis copiez les fichiers .htaccess et django.cgi vers votre
hébergement, ainsi que le code source de Django et le code source de votre site web.
| static void drawString(string text, Vector3 worldPos, Color? colour = null) { | |
| UnityEditor.Handles.BeginGUI(); | |
| if (colour.HasValue) GUI.color = colour.Value; | |
| var view = UnityEditor.SceneView.currentDrawingSceneView; | |
| Vector3 screenPos = view.camera.WorldToScreenPoint(worldPos); | |
| Vector2 size = GUI.skin.label.CalcSize(new GUIContent(text)); | |
| GUI.Label(new Rect(screenPos.x - (size.x / 2), -screenPos.y + view.position.height + 4, size.x, size.y), text); | |
| UnityEditor.Handles.EndGUI(); | |
| } |
| # -*- coding: utf-8 -*- | |
| #test on python 3.4 ,python of lower version has different module organization. | |
| import http.server | |
| from http.server import HTTPServer, BaseHTTPRequestHandler | |
| import socketserver | |
| PORT = 8080 | |
| Handler = http.server.SimpleHTTPRequestHandler |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000