- AGB-001
- ASS101 screen
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
| defmodule Expng do | |
| defstruct [:width, :height, :bit_depth, :color_type, :compression, :filter, :interlace, :chunks] | |
| def png_parse(<< | |
| 0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, | |
| _length :: size(32), | |
| "IHDR", | |
| width :: size(32), | |
| height :: size(32), |
I have been struggling (unnecessarily) to make my NativeScript app work seamlessly with Phoenix Channels.
I'm sure this is not the perfect solution, but after trying a lot of other solutions and none of them worked, this one worked for me like a charm.
I'm using:
- macOS 10.12.6
- phoenix 1.3.0
- NativeScript 3.1.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
| defmodule Releaser.VersionUtils do | |
| @doc """ | |
| Some utilities to get and set version numbers in the `mix.exs` file | |
| and to programatically transform version numbers. | |
| Maybe the `bump_*` functions should be in the standard library? | |
| This script doesn't support pre-release versions or versions with build information. | |
| """ | |
| @version_line_regex ~r/(\n\s*@version\s+")([^\n]+)("\n)/ |
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
| defmodule FromPipe do | |
| # | |
| # Use a helper script "from_pipe_forward" to communicate | |
| # contents from the named pipe to the port | |
| # | |
| @pipe_name "/tmp/testpipe" | |
| @from_pipe_forward "./from_pipe_forward" | |
| @from_pipe_clean "./from_pipe_clean" | |
| # * terminate potential zombie OS process |
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
| defmodule FromPipe do | |
| # | |
| # Use a helper script "from_pipe_release" to | |
| # release/request each line read from the | |
| # named pipe - effectively implementing a | |
| # crude backpressure mechanism | |
| # | |
| @pipe_name "/tmp/testpipe" | |
| @from_pipe_release "./from_pipe_release" | |
| @from_pipe_clean "./from_pipe_clean" |