This file contains 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
// Credit to damien_oconnell from http://forum.unity3d.com/threads/39513-Click-drag-camera-movement | |
// for using the mouse displacement for calculating the amount of camera movement and panning code. | |
using UnityEngine; | |
using System.Collections; | |
public class MoveCamera : MonoBehaviour | |
{ | |
// | |
// VARIABLES |
This file contains 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
<iframe id="iframe3" style="background: rgb(255, 255, 255) none repeat scroll 0% 0%; border: 0px solid rgb(238, 238, 238); width: 100%; overflow: hidden; height: 199px;" src="https://timesprayer.today/widget_frame.php?frame=3&id=564&sound=false"></iframe> |
This file contains 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
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Oct 17 05:15:31 2019 | |
@author: Iyad | |
""" | |
def dif(f, x, h = .001): | |
return (f(x+h)-f(x))/h | |
def nsolve(f, err = .001): | |
x = 0 |
This file contains 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 tkinter import * | |
from tkinter.colorchooser import askcolor | |
class Paint(object): | |
DEFAULT_PEN_SIZE = 5.0 | |
DEFAULT_COLOR = 'black' | |
def __init__(self): |
This file contains 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
# NOTE: blender already has this functionality | |
bl_info = { | |
"name": "Vertex Group From Selected", | |
"author": "Iyad Al-Sonoussi(AKA Human/Redivider/CGOnFire)", | |
"version": (0,1), | |
"blender": (2, 80, 0), | |
"location": "VIEW3D > Vertex Context Menu > New Vertex Group", | |
"description": "Create Vertex Group From Selected Vertices", | |
"warning": "", |
This file contains 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> | |
using namespace std; | |
float safein(){ | |
float n; | |
cout << "Enter a number: "; | |
while (!(cin >> n)){ | |
cout << "ERR: NOT A NUMBER!" << endl; | |
cin.clear(); | |
cin.ignore(256, '\n'); | |
} |
This file contains 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
<script> | |
window.location.assign("https://www.google.com") | |
</script> | |
<div dir="rtl" style="text-align: right;" trbidi="on"> | |
<div class="separator" style="clear: both; text-align: center;"> | |
<br /></div> | |
</div> |
This file contains 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> | |
using namespace std; | |
const float pi = 3.14159265359; | |
float safein(string ask){ | |
float n; | |
cout << ask; | |
while (!(cin >> n)){ | |
cout << "ERR: NOT A NUMBER!" << endl; | |
cin.clear(); | |
cin.ignore(256, '\n'); |
This file contains 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 <cmath> | |
using namespace std; | |
double safein(string ask){ | |
cout << ask << endl; | |
double x; | |
while(!(cin >> x) || x - floor(x)){ | |
cout << "Not an integer!\n"; | |
cin.clear(); | |
cin.ignore(256,'\n'); |
This file contains 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 code is ugly I know | |
import sys | |
import os | |
if (len(sys.argv)> 1): | |
file = sys.argv[1] | |
if file.endswith(".vcxproj"): | |
def fix(file): | |
with open(file) as proj: |
OlderNewer