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
| /** CONSTANTS **/ | |
| var BOARD_ID = "XXX"; | |
| var APP_KEY = "XXX"; | |
| var USER_TOKEN = "XXX"; | |
| var NO_LABEL_CATEGORY_NAME = 'No label' | |
| var LIST_2_ID = "XXX" | |
| var LIST_1_ID = "XXX" | |
| // Add a new menu to trigger the sheet update | |
| function onOpen() { |
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
| Snippets to show git info live while you execute git commands. Good for demonstration |
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 ( | |
| "fmt" | |
| "io/ioutil" | |
| "strings" | |
| ) | |
| func main() { |
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 django.http import HttpResponse | |
| def ajax_aware_login_required(f): | |
| def decoration(request): | |
| if request.user.is_authenticated: | |
| return f(request) | |
| else: | |
| return HttpResponse(status=401) | |
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
| // Vc pode usar então {{ ProcessoController::getAddURL(1,2) }} | |
| // e será o equivalente à {{ action('ProcessoController@getAdd', array(1, 2)) }} | |
| // 15 caracteres a menos | |
| // Não é possivel errar o nome do controller, e ele pode ser autocompletado | |
| public static function __callStatic($name, $arguments) | |
| { | |
| if(substr($name, -3) == "URL"){ | |
| $actionName = substr($name, 0, -3); |
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
| A middleware to avoid opening your site to be accessed by arbitrary domains |
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
| Vue.js code, made in a prototype project. Saved here just for remembering |
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
| A controller that allows you to pass data to views using the controller instance variables |
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
| A collection of things that can be done to make handling dates in Laravel much easier (if you deal with date formats that are not english) |
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
| LaravelExcel modifications to output CSV files with BOM and a helper class to abstract it |
NewerOlder