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 ErrorCodes.Repo do | |
use Ecto.Repo, otp_app: :error_codes | |
end | |
defmodule ErrorCodes.ErrorCode do | |
use Ecto.Schema | |
schema "errors" do | |
end | |
end |
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
* TODO: Implement Dose Sum | |
- This will involve keeping track of calculations across a whole | |
profile. Which means I need some sort of global state which is | |
held in the profile instance. | |
``` | |
22830 !**************** | |
22840 Dose_sum:Dos=Dos+EXP(FNConc(Rho(N),Typ(N))) | |
22850 Con=Con+EXP(-Rho(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
** (FunctionClauseError) no function clause matching in IO.chardata_to_string/1 | |
(elixir) lib/io.ex:346: IO.chardata_to_string(nil) | |
(elixir) lib/path.ex:467: Path.join/2 | |
(elixir) lib/path.ex:449: Path.join/1 | |
lib/client.ex:44: Mailgun.Client.send_without_attachments/2 |
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
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 --> | |
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" /> | |
<title>battleship</title> | |
</head> | |
<body> | |
<div id="board"> |
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
module ZeroOneOne (main, parMain) where | |
import Lib as L | |
import Data.List (transpose) | |
import Control.Parallel.Strategies | |
{- | |
Problem 11: | |
In the 2020 grid below, four numbers along a diagonal line have been marked in red. |
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
── blanket#1.1.5 (latest is 1.1.7) | |
├── bourbon#4.2.1 (latest is 4.2.3) | |
├─┬ dinosheets#0.0.1 (latest is 0.1.0) | |
│ └── loader.js#3.2.0 (latest is 3.2.1) | |
├─┬ ember#1.12.1 (latest is 1.13.0-beta.2) | |
│ └── jquery#2.1.3 (2.1.4 available) | |
├─┬ ember-cli-moment-shim#0.1.0 | |
│ └── moment#2.10.3 | |
├─┬ ember-cli-shims#0.0.3 | |
│ └── ember#1.12.1 (1.13.0-beta.2 available) |
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
{ | |
"meta": { | |
"limit": 10, | |
"offset": 0, | |
"page_count": 10, | |
"data_type": "collection", | |
"links": { | |
"last": "http://localhost:3000/collections?limit=10&offset=10", | |
"root": "http://localhost:3000/", | |
"self": "http://localhost:3000\n/collections?limit=10&offset=0", |
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
sendKeyPress: function() { | |
console.log('sendKeyPress'); | |
var $editor = $(this.get('editor').getDocument()).find('body'); | |
var keyEvent = $.Event( "keypress", { keyCode: 69, which: 69, charCode: 69 }); | |
$editor.focus(); | |
$editor.trigger(keyEvent); | |
}, |
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
cat *.json |\ | |
jq 'map(select(.from.name=="Nate Klaiber"))' |\ | |
jq '.[].message' |\ | |
grep -v 'jq' |\ | |
sed -e 's/\([[:punct:]]\)//g' |\ | |
grep -v '^$' |\ | |
tr '\n' ' ' |\ | |
tr ' ' '\n' |\ | |
tr '[:upper:]' '[:lower:]' |\ | |
sort |\ |
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
# This is ripe for some refactoring, but I think it shows an okay | |
# implementation of the factory pattern | |
class Animal(object): | |
sound = "" | |
description = "" | |
def describe(self): | |
return self.description |
NewerOlder