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
func UserRoutes(configureGroup *fiber.Group) { | |
users := configureGroup.Group("/users") | |
//Get | |
//Post | |
users.Post("/login", login) | |
//Delete |
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
var express = require('express'); | |
var app = require('express')(); | |
var server = require('http').createServer(app); | |
var io = require('socket.io')(server); | |
server.listen(80, function () { | |
console.log('Server Started'); | |
}); | |
server.listen(80); |
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
$('.cancel, .email-item').on("click",function () { | |
$('.email-content-body').text(original_text); | |
$('.email-content-body').attr("contenteditable", "false"); | |
$('.email-content-body').css({ color: "black" }); | |
$('.cancel').css({ display: "none" }); | |
$('.delete').css({ display: "inline" }); | |
$('.submitbranch').css({ display: "none" }); | |
$('.edit').css({ display: "inline" }); | |
}) |
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
function splitArr (arr, divNum){ | |
tempArr = []; | |
finalArr = []; | |
var arrayLength = arr.length; | |
var counter = 0; | |
if(arrayLength % divNum === 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
var http = require('http'); | |
var port = process.env.port || 1337; | |
http.createServer(function (req, res) { | |
res.writeHead(200, { 'Content-Type': 'text/plain' }); | |
res.end('Hello World\n'); | |
}).listen(port); |
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
if(isset($_FILES['name'])){ | |
print_r2($_FILES['name']); | |
} | |
files -> | |
Name: | |
Temp Name: | |
Size: |
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
<?php | |
if($foo = serverMethod['Post']){ | |
//dosmething | |
?> | |
<script> windows.location.href = "somewhere" <script> | |
<?php | |
} | |
$bar->executeSomething; |