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
// Modal | |
public class ControllerActions | |
{ | |
public string Controller { get; set; } | |
public string Action { get; set; } | |
public string Attributes { get; set; } | |
public string ReturnType { get; set; } | |
public string HttpMethods { get; set; } | |
public string ReturnsView { get; set; } | |
public string ViewPath { get; set; } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Windows Registry Editor Version 5.00 | |
; Open files | |
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code] | |
@="Edit with VS Code" | |
"Icon"="C:\\Program Files\\Microsoft VS Code\\Code.exe,0" | |
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command] | |
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%1\"" | |
; This will make it appear when you right click ON a folder | |
; The "Icon" line can be removed if you don't want the icon to appear | |
[HKEY_CLASSES_ROOT\Directory\shell\vscode] |
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 getIP() { | |
detectIP().then((ip)=>{ return ip }).catch((error)=>{ console.log({error}); return null; }); | |
} | |
function getBrowser() { | |
var ua = navigator.userAgent, tem, | |
M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || []; | |
if (/trident/i.test(M[1])) { | |
tem = /\brv[ :]+(\d+)/g.exec(ua) || []; | |
return 'IE ' + (tem[1] || ''); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Search</title> | |
<style type="text/css"> | |
ul#searchList { | |
list-style-type: none; | |
list-style-position: inside; | |
display:block; | |
position:relative; |
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
sudo apt-get install php-pear | |
sudo pear channel-discover pear.phpdoc.org | |
sudo pear install phpdoc/phpDocumentor |
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
# VSCode Nautilus Extension | |
# | |
# Place me in ~/.local/share/nautilus-python/extensions/, restrart Nautilus, and enjoy :) | |
# mkdir -p ~/.local/share/nautilus-python/extensions && cp -f VSCodeExtension.py ~/.local/share/nautilus-python/extensions/VSCodeExtension.py && nautilus -q | |
# | |
# This script was written by cra0zy and is released to the public domain | |
from gi import require_version | |
require_version('Gtk', '3.0') | |
require_version('Nautilus', '3.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
// method one https://stackoverflow.com/revisions/9851769/1 | |
var isOpera = !!(window.opera && window.opera.version); // Opera 8.0+ | |
var isFirefox = testCSS('MozBoxSizing'); // FF 0.8+ | |
var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0; | |
// At least Safari 3+: "[object HTMLElementConstructor]" | |
var isChrome = !isSafari && testCSS('WebkitTransform'); // Chrome 1+ | |
var isIE = /*@cc_on!@*/false || testCSS('msTransform'); // At least IE6 | |
function testCSS(prop) { | |
return prop in document.documentElement.style; |
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
SELECT | |
edu.*, | |
Educator.*, | |
cCat.`courseObjectiveName`, | |
cGoal.`courseGoalName`, | |
cTop.`courseExamName`, | |
cCon.`courseSubjectName` | |
FROM ".EducatorCoursesModel::$coursesTableName." AS edu | |
LEFT JOIN " . courseObjectiveModel::$tableName . " AS cCat | |
ON edu.`courseObjectiveId`=cCat.`courseObjectiveId` |
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 | |
$MERCHANT_KEY = "xxxxxxxx"; // replace with marchent key | |
$SALT = "xxxxxxxxx"; // replace with salt | |
$txnid = substr(hash('sha256', mt_rand() . microtime()), 0, 20); | |
$surl = 'http://xxxxxxx.com/payment_response'; // replace with success url | |
$furl = 'http://xxxxxxx.com/payment_response'; // replace with fail url | |
$curl = 'http://xxxxxxx.com/payment_response'; // replace with cancel url | |
$action = 'https://sandboxsecure.payu.in/_payment'; // sandbox url |
NewerOlder