Skip to content

Instantly share code, notes, and snippets.

View TheOpenDevProject's full-sized avatar
🤑
Yeeet

Jesse TheOpenDevProject

🤑
Yeeet
View GitHub Profile
PHP-Stuffs
=============
1.Variables
2.LHS vs RHS. Types of evaluations
3.If i see you use eval() ill fucking kil you
4. Never use EVAL()!
5.functions
6. Classes
1.Constructor
2.Methods
<?php
include 'vendor/autoload.php'
//NOTHING ELSE BELONGS IN THIS FILE
Application::Start(array('SettingsStuff' => array(
'AppName' => 'MyApp'
)),'POST,GET',true,function(){});
?>
{
"serverConfig": {
"serverName": "example Server",
"serverAddress": "0.0.0.0:8080",
"maxConcurrentConnections": 10,
"maxConcurrentJobsRunning": 0
},
"databaseConfig": {
"databaseType": "mysql",
"databaseAddress": "127.0.0.7",
fn main(){
match imaginary_thing.stuff(){
Imaginary::ConstHere => || {
//Do stuff
},
Imaginary::AnotherConst => || {
//Do Other stuff
}
}
}
var app = (() => {
class Example{
Method(){
let blaa = 4;
{
console.log(4);
}
}
}
<?php
interface stuffShouldDo{
public function whoo();
}
class stuffDoer implements stuffShouldDo{
public function __construct(){
}
public function oneFunction(){
System.ArgumentNullException: Value cannot be null. Parameter name: key at System.Collections.Generic.Dictionary`2.FindEntry(TKey key) at Microsoft.VisualStudio.Html.Package.Extensions.ExtensionsManager.OnTextViewCreated(ITextView textView, ITextBuffer textBuffer) at Microsoft.Web.Editor.Controller.TextViewConnectionListener.OnTextViewGotAggregateFocus(ITextView textView, ITextBuffer textBuffer) at Microsoft.VisualStudio.Html.Package.Commands.Html.VsHtmlTextViewConnectionListener.OnTextViewGotAggregateFocus(ITextView textView, ITextBuffer textBuffer) at Microsoft.Web.Editor.Controller.TextViewConnectionListener.<>c__DisplayClass24_0.<OnTextViewConnected>b__0(Object sender, EventArgs eventArgs) at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent(Object sender, EventHandler eventHandlers)
<?php
class HTMLObject{
private $id;
private $elem_class;
private $type;
private $extra_props;
//Do this for each property
public function setId($id = null){
$this->id = $id;
The specified host network collides with a non-hostonly network!
This will cause your specified IP to be inaccessible. Please change
the IP or name of your host only network so that it no longer matches that of
a bridged or non-hostonly network.
//main.cpp
#include "gamestage.h"
int main()
{
GameStage theGame;
theGame.startGame();
return 0;
}