layout | title | description | tags | ||
---|---|---|---|---|---|
default |
SQL Style Guide |
A guide to writing clean, clear, and consistent SQL. |
|
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
CREATE TEMPORARY TABLE sessions_calculation( | |
wnum INT(11) NOT NULL, | |
work_date DATE NOT NULL, | |
worked_hours TIME DEFAULT 0, | |
INDEX (wnum, work_date) | |
); | |
# Same day | |
INSERT INTO sessions_calculation (wnum, work_date, worked_hours) | |
SELECT wnum |
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 lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<script src="//ajax.googleapis.com/ajax/libs/mootools/1.4.5/mootools-yui-compressed.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
console.log((function (servers, neededServers, neededClusters, performanceDegradation) { | |
var defaultServerStringSeparator = "\n", |
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 | |
class InvoiceManagerSubscriberTest extends KernelTestCase { | |
public function testGetInvoiceForAccountLogic() | |
{ | |
$userRepository = $this->getUserRepository(); | |
$user = (new User())->addQualification(1); | |
$userSys = $userRepository->findSysUser(); |
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
define([ | |
'jsclass/class', | |
'./WidgetService', | |
'app/common/layout/manager', | |
'app/common/layout/model', | |
'app/common/datatable/component.datatable', | |
'Shared/Base/ConfigureGrid', | |
'Shared/Filter/filter', | |
'Shared/Filter/PageFilterSortInfo', | |
'Shared/Base/LoadMask', |
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
Nextgen version :) | |
## | |
# Template | |
## | |
server { | |
listen {SITE_IP}:80; | |
server_name {SITE_DOMAIN} www.{SITE_DOMAIN}; |
We all love Spotify, but sometimes people (like us) want to throw a party without having to listen to interrupting ads before having bought Spotify Premium. Well, with this killer project, now you can!
This is for testing purposes ONLY! Spotify is a fantastic service and worth every penny. This script is NOT meant to circumvent buying premium! Please do consider switching to premium to support Spotify - especially if you're going to use it on mobile. If the script does not work for you, help us improve it!
wget -O spotify-mute-ads.sh https://gist.githubusercontent.com/logical-and/825bab160d604d82bf6ad9ebd3a6410d/raw/84f77518f6fa8980e73fcf1fadd30d223f2100a1/spotify-mute-ads.sh
chmod ug+x spotify-mute-ads.sh
./spotify-mute-ads.sh