This file contains hidden or 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
| /* bling.js */ | |
| window.$ = document.querySelector.bind(document); | |
| window.$$ = document.querySelectorAll.bind(document); | |
| Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
| NodeList.prototype.__proto__ = Array.prototype; | |
| NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
This file contains hidden or 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
| //place this script in the Editor folder within Assets. | |
| using UnityEditor; | |
| //to be used on the command line: | |
| //$ Unity -quit -batchmode -executeMethod WebGLBuilder.build | |
| class WebGLBuilder { | |
| static void build() { | |
| string[] scenes = {"Assets/main.unity"}; |
This file contains hidden or 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
| /* From: http://www.minimit.com/articles/solutions-tutorials/bootstrap-3-responsive-columns-of-same-height */ | |
| /* columns of same height styles */ | |
| .container-xs-height { | |
| display:table; | |
| padding-left:0px; | |
| padding-right:0px; | |
| } | |
| .row-xs-height { | |
| display:table-row; |
This file contains hidden or 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 | |
| //This code is licensed under the terms of the MIT license | |
| use GuzzleHttp\Client; | |
| use Config; //using Laravel's Config facade | |
| /* | |
| |-------------------------------------------------------------------------- |
This file contains hidden or 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
| $.fn.skrollto = function(speed, easing) { | |
| speed = speed || 1000; | |
| easing = easing || 'swing'; | |
| return $(this).each(function(i, el){ | |
| //calculate destination place | |
| var dest = 0; | |
| var el = $(this); | |
| if (el.is(':hidden')) { |
This file contains hidden or 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 ( | |
| "path/filepath" | |
| "fmt" | |
| "os" | |
| ) | |
| func main(){ | |
| location := "../gocode/" |
This file contains hidden or 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 | |
| require('Slim/Slim.php'); | |
| \Slim\Slim::registerAutoloader(); |
This file contains hidden or 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 loadTemplates(templates, callback) { | |
| var _loadCount = 0; | |
| $('body').bind('templates_loaded', callback); | |
| if(templates.length === 0){ | |
| $('body').trigger('templates_loaded'); | |
| }else{ | |
| $(templates).each(function(i, el) { | |
| var _tpl = $('<script>'); | |
| _tpl.attr('type', 'text/x-handlebars'); |
This file contains hidden or 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 Tmb; | |
| use Illuminate\Database\Eloquent\Model as Eloquent; | |
| use Illuminate\Validation\Validator; | |
| class BaseModel extends Eloquent | |
| { | |
| /** | |
| * Error message bag |
This file contains hidden or 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
| "#wrapper": { | |
| // Set wrapper to adjust it's size to it's contents | |
| width: Ti.UI.SIZE, | |
| height: Ti.UI.SIZE, | |
| // Set stuff like borders and backgrounds on the wrapper | |
| backgroundColor: "red" | |
| } |