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() { | |
| // the ESC button on the page | |
| var quickESCButton = document.getElementById('quick-esc') | |
| function getAway() { | |
| // open new tab with innocent site | |
| window.open("http://weather.com", "_newtab") | |
| // replace current site with another benign site | |
| window.location.replace('http://google.com') | |
| } |
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
| // we need to guard against anything that uses document or window | |
| // for the gatsby build to work because there is no DOM in the build process. | |
| // Example of importing a package such as sketch-js: | |
| let sketch | |
| if (typeof document !== 'undefined') | |
| sketch = require('sketch-js') |
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
| ### You need to do this first: | |
| # 1 .Enable External option in Unity → Preferences → Packages → Repository (only if Unity ver < 4.5) | |
| # 2. Switch to Visible Meta Files in Edit → Project Settings → Editor → Version Control Mode | |
| # 3. Switch to Force Text in Edit → Project Settings → Editor → Asset Serialization Mode | |
| # 4. Save Scene and Project from File menu. | |
| # 5. Quit Unity and then you can delete the Library and Temp directory in the project directory. You can delete everything but keep the Assets and ProjectSettings directory. | |
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 System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class GameController : MonoBehaviour { | |
| public GameObject[] gameCameras; | |
| private int gameCameraIndex = 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
| # Add this to the .htaccess | |
| # fix image upload HTTP ERROR on inmotion hosting | |
| SetEnv MAGICK_THREAD_LIMIT 1 |
NewerOlder