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
// ==UserScript== | |
// @name Open github files in vscode | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Taha PAKSU | |
// @match https://github.com/*/tree/* | |
// @grant none | |
// ==/UserScript== |
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 | |
namespace App\Console; | |
use Illuminate\Console\Scheduling\Schedule; | |
use Illuminate\Foundation\Console\Kernel as ConsoleKernel; | |
class Kernel extends ConsoleKernel | |
{ | |
/** |
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
// replace your start date instance onfirstselect event with this: | |
onfirstselect: function (instance, start) { | |
startDate = start.clone(); | |
startInstance.globals.startSelected = false; | |
startInstance.hideDropdown(); | |
endInstance.showDropdown(); | |
endInstance.setDisplayDate(start.clone()); | |
endInstance.config.minDate = startDate.clone(); | |
endInstance.config.startDate = startDate.clone(); |
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
// http://callmenick.com/post/slide-and-push-menus-with-css3-transitions | |
(function(window) { | |
'use strict'; | |
/** | |
* Extend Object helper function. | |
*/ | |
function extend(a, b) { |
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
module.exports.assertion = function(selector, count, message = null) { | |
this.message = | |
message || | |
`Asserting that there are "${count}" visible elements that match "${selector}"`; | |
this.expected = count; | |
this.pass = function(value) { | |
return value === this.expected; | |
}; | |
this.value = function(result) { | |
return result.value; |
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
#!/bin/sh | |
CRTPATH=$(pwd -W) | |
for i in *.key ; do | |
DOMAIN=${i%.key} | |
cat << EOF > openssl_$DOMAIN.conf | |
[req] | |
distinguished_name = req_distinguished_name | |
req_extensions = v3_req | |
prompt = no | |
[req_distinguished_name] |