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
import torch | |
class OnnxTestRandnLike(torch.nn.Module): | |
def forward(self, x): | |
m = torch.randn_like(x) | |
y = m * x | |
return y | |
class OnnxTestRandn(torch.nn.Module): | |
def forward(self, x): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# -*- coding: utf-8 -*- | |
require 'mailparser' | |
f = File.open("test.txt") | |
@raw = f.read | |
m = MailParser::Message.new(@raw, :decode_mime_header=>true) | |
body = "" | |
if m.multipart? then | |
@boundary = m.header["content-type"][0].params["boundary"] |
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
@import url('reveal.orig.css'); | |
.reveal .slides h1, | |
.reveal .slides h2, | |
.reveal .slides h3, | |
.reveal .slides h4, | |
.reveal .slides h5, | |
.reveal .slides h6 { | |
-webkit-hyphens: auto; | |
-moz-hyphens: auto; |
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
#!/bin/sh | |
DIR="/bin" | |
"$DIR/ls" |
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
diff --git a/View/Helper/BootstrapFormHelper.php b/View/Helper/BootstrapFormHelper.php | |
index 89f9814..714709f 100644 | |
--- a/View/Helper/BootstrapFormHelper.php | |
+++ b/View/Helper/BootstrapFormHelper.php | |
@@ -114,10 +114,19 @@ class BootstrapFormHelper extends FormHelper { | |
} | |
public function radio($fieldName, $radioOptions = array(), $options = array()) { | |
+ $inlineFlag = false; | |
+ if (isset($options['inline']) and true == $options['inline']) { |
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
#!/bin/bash | |
if [ $# -ne 0 ]; then | |
project_name=${1} | |
else | |
echo "usage: makecake.sh [project_name]" | |
exit | |
fi | |
if [ -e ${project_name} ]; then |