Deploy a Express.js project on Heroku
Step by step from command line by Michael Hsu
$ express myfirstexpress && cd myfirstexpress
public class SingletonClass implements Serializable { | |
private static volatile SingletonClass sSoleInstance; | |
//private constructor. | |
private SingletonClass(){ | |
//Prevent form the reflection api. | |
if (sSoleInstance != null){ | |
throw new RuntimeException("Use getInstance() method to get the single instance of this class."); |
Step by step from command line by Michael Hsu
$ express myfirstexpress && cd myfirstexpress
package org.codeandmagic.android.customtheme; | |
import android.content.Context; | |
import android.content.res.Resources; | |
import android.graphics.Color; | |
import android.util.AttributeSet; | |
import android.util.Log; | |
import android.util.TypedValue; | |
import android.widget.TextView; |
Disclaimer: Modding the discord client is against Discord's term of service. I'm not responsible if any action is taken against you.
Modding the client will allow you to customize to:
This guide will explain how to inject js code into the discord client and send messages. I'm assuming you know you to write javascript code and are using Windows.
Now, there is a big issue you must know about. Doing that implies that you remotely load the code. Modern web browsers will load the file and keep executing your current script because they load everything asynchronously to improve performance. (This applies to both the jQuery method and the manual dynamic script loading method.)
It means that if you use these tricks directly, you won't be able to use your newly loaded code the next line after you asked it to be loaded, because it will be still loading.
For example: my_lovely_script.js
contains MySuperObject
:
var js = document.createElement("script");
js.type = "text/javascript";
Add command to toggle quake mode
{
"command":
{
"action": "globalSummon",
"name": "_quake",
"toggleVisibility": true
},
"keys": "f1"