View baseline_models.py
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 pathlib import Path | |
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F | |
class TanhNet(nn.Module): | |
def __init__(self, in_features, h_units): | |
super(TanhNet, self).__init__() | |
self.fc1 = nn.Linear(in_features, h_units) |
View gist:1429b41307e6c327f8f1f4dd796e5add
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
let pastryList: list(pastry) = [ | |
{ label: "🥐 Croissants", flour: 0.7, butter: 0.5, sugar: 0.2, eggs: 0.0 }, | |
{ label: "🍪 Cookies", flour: 0.5, butter: 0.4, sugar: 0.5, eggs: 0.2 }, | |
{ label: "🥞 Pancakes", flour: 0.7, butter: 0.5, sugar: 0.3, eggs: 0.3 }, | |
{ label: "🍩 Dougnuts", flour: 0.5, butter: 0.2, sugar: 0.8, eggs: 0.1 } | |
]; | |
let theList = List.map((item) => <Text>{item.label}</Text>, pastryList); |
View Decorator.js
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
function logger() { | |
return function (target, key, descriptor) { | |
const initialValue = descriptor.value; | |
descriptor.value = function() { | |
console.log(`>"${key}" with`, arguments); | |
return initialValue.apply(null, arguments); | |
}; | |
return descriptor; | |
} | |
} |
View gist:d05c71f2a1ceee235d0925c6dda9c602
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
### Keybase proof | |
I hereby claim: | |
* I am jlebensold on github. | |
* I am jonlebensold (https://keybase.io/jonlebensold) on keybase. | |
* I have a public key ASA6FXU5tOFj86Q3up5-PMvKM3yGHdjp54wpJfC8ZzDG9wo | |
To claim this, I am signing this object: |
View index.ios.js
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
import React, { Component } from 'react'; | |
import { | |
AppRegistry, | |
StyleSheet, | |
Text, | |
View | |
} from 'react-native'; | |
steps = 20000; |
View Name.php
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
<?php | |
session_start(); | |
if (!isset($_SESSION['names'])) | |
$_SESSION['names'] = array("jane","jim","john","emily","bill","sara"); | |
class Name | |
{ | |
public $id; |
View Name.php
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
<?php | |
session_start(); | |
if (!isset($_SESSION['names'])) | |
$_SESSION['names'] = array("jane","jim","john","emily","bill","sara"); | |
class Name | |
{ | |
public $id; |
View home.tpl.php
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
<html> | |
<head> | |
<title>Names Hello</title> | |
<script type="text/javascript" src="/js/jquery-1.5.1.js"></script> | |
<style> | |
* | |
{ | |
margin: 0 0; | |
padding: 0 0; |
View Name.php
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
<?php | |
session_start(); | |
if (!isset($_SESSION['names'])) | |
$_SESSION['names'] = array("jane","jim","john","emily","bill","sara"); | |
class Name | |
{ | |
public $id; |
View .htaccess
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
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ index.php [QSA,L] |
NewerOlder