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
func sendSingleFrame(c echo.Context) error { | |
// Initialize a Buffer | |
buf := new(bytes.Buffer) | |
// Grab the file from the filesystem | |
imgFile, _ := os.Open("cool.gif") | |
// If you try and decode the image you'll | |
// only find the first frame of the gif | |
g, _ := gif.Decode(imgFile) |
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
func sendGif(c echo.Context) error { | |
// Initialize a Buffer (https://golang.org/pkg/bytes/#Buffer) | |
// This is where we'll write gif data too so that it can be | |
// read from via the http server | |
buf := new(bytes.Buffer) | |
// Grab the file from the filesystem | |
imgFile, _ := os.Open("cool.gif") | |
// We want to break apart all the frame data to make sure we |
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://eslint.org/docs/rules/ | |
"parser": "babel-eslint", | |
"ecmaFeatures": { | |
"arrowFunctions": true, // enable arrow functions | |
"binaryLiterals": false, // enable binary literals | |
"blockBindings": true, // enable let and const (aka block bindings) | |
"classes": true, // enable classes | |
"defaultParams": true, // enable default function parameters | |
"destructuring": true, // enable destructuring |
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
/** | |
* A simple module for abstracting styling away | |
* from a specific heading element. Add modifiers | |
* for color, font-weight, etc. as you need them. | |
* | |
* Need More sizes? Add more. Just don't style an | |
* element contextually, leverage a CSS module/object/thing | |
*/ | |
.hdg { |
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
ComponentModule.directive('test', [ | |
'RequestService', | |
function( | |
RequestService | |
) { | |
return { | |
scope: true, | |
link: function(scope, element, attrs) { |