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
name: Update data | |
on: | |
schedule: | |
- cron: "0 5 * * *" | |
jobs: | |
execute: | |
runs-on: ubuntu-latest |
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
defmodule Support.FeatureCase do | |
@moduledoc false | |
use ExUnit.CaseTemplate | |
using do | |
quote do | |
@moduletag :feature | |
use Wallaby.DSL |
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
name: Elixir CI | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest |
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
defmodule MyApp.PubSubLib do | |
@moduledoc """ | |
This library implements easy to use Publish-Subscribe functionality. | |
## Usage | |
Use this library with `use MyApp.PubSubLib`. | |
## Example | |
defmodule MyApp.MyPublishingModule do |
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
pragma solidity ^0.4.24; | |
contract A { | |
address public sender; | |
function dcall(B other, C child) public { | |
other.dcall(child); | |
} | |
} |
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 | |
IP=`hostname -I | awk '{print $1}'` | |
MESSAGE="Pi ${HOSTNAME} fully booted. New IP: $IP" | |
TITLE="`whoami`@${HOSTNAME}" | |
APP_TOKEN="YOUR_APP_TOKEN_HERE" | |
USER_TOKEN="YOUR_USER_TOKEN_HERE" | |
wget https://api.pushover.net/1/messages.json --post-data="token=$APP_TOKEN&user=$USER_TOKEN&message=$MESSAGE&title=$TITLE" -qO- > /dev/null 2>&1 & |
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
from observer.observer_pattern import Observable, Observer | |
class Elf: | |
name = 'Galadriel' | |
def nall_nin(self): | |
print('Elf says: Calling the Overlord ...') | |
NewerOlder