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 | |
function defer_js_async($tag){ | |
// scripts to defer. | |
$scripts_to_defer = array('script-name1.js', 'script-name2.js', 'script-name3.js'); | |
// scripts to async. | |
$scripts_to_async = array('script-name1.js', 'script-name2.js', 'script-name3.js'); | |
foreach($scripts_to_defer as $defer_script){ |
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
.table-container th.asc:after { | |
content: '\0000a0\0025b2'; | |
} | |
.table-container th.desc:after { | |
content: '\0000a0\0025bc'; | |
} | |
.pagination { | |
text-align: center; | |
} |
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 | |
/** | |
* Middleware to set correct header for JSON output. | |
* Very basic initial version, simply checks the body of the response to see if it is valid JSON. | |
* If response is not JSON then continues with default settings. | |
* If response is JSON then header is updated. | |
* | |
* @author Richard Styles | |
*/ | |
namespace App\Middleware; |
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
<html> | |
<body> | |
Test: Random text | |
</body> | |
</html> |
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
// usage: | |
// var app = require('singleton'); | |
define(function(require) { | |
var Marionette = require('backbone.marionette'); | |
// static instance of a Marionette.Application | |
var app = null; | |
// singleton function | |
function getSingleton() { |
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
$ -> | |
Event = Backbone.Model.extend() | |
Events = Backbone.Collection.extend({ | |
Model: Event, | |
url : 'events' | |
}) | |
EventsView = Backbone.View.extend({ | |
initialize: -> |
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 () { | |
var TestView = Backbone.View.extend({ | |
el: '#container', | |
initialize: function () { | |
console.log('Inside Init'); | |
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
package main | |
import ( | |
"log" | |
"net/url" | |
"github.com/gin-gonic/gin" | |
) | |
func main() { |
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/bash | |
# Name: listusers.bash | |
# Purpose: List all normal user and system accounts in the system. Tested on RHEL / Debian Linux | |
# Author: Vivek Gite <www.cyberciti.biz>, under GPL v2.0+ | |
# ----------------------------------------------------------------------------------- | |
_l="/etc/login.defs" | |
_p="/etc/passwd" | |
## get mini UID limit ## | |
l=$(grep "^UID_MIN" $_l) |
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
image: golang:1.8.1 | |
variables: | |
BIN_NAME: go-practice-ci | |
ARTIFACTS_DIR: artifacts | |
GO_PROJECT: gitlab.com/go-practice-ci | |
stages: | |
- build | |
- test |
OlderNewer