I hereby claim:
- I am shadowfiend on github.
- I am shadowfiend (https://keybase.io/shadowfiend) on keybase.
- I have a public key whose fingerprint is 917B 2CF5 A4D5 8414 E61B 2B90 AFF2 26F4 A6B6 4797
To claim this, I am signing this object:
| pragma solidity >=0.4.22 <0.7.0; | |
| interface IERC721 { | |
| function approve(address to, uint256 tokenId) external; | |
| function transferFrom(address from, address to, uint256 tokenId) external; | |
| function exists(uint256 tokenId) external view returns (bool); | |
| } | |
| interface IERC20 { | |
| function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); |
I hereby claim:
To claim this, I am signing this object:
| (function git-branch-for (document) | |
| (let ((directory (((document fileURL) path) stringByDeletingLastPathComponent)) | |
| (manager (NSFileManager defaultManager))) | |
| (let (directory-with-git (directory stringByAppendingPathComponent:".git")) | |
| (if (manager directoryExistsNamed:directory-with-git) | |
| (let (previous-directory (manager currentDirectoryPath)) | |
| (manager changeCurrentDirectoryPath:directory) | |
| (let (branches ((NSString stringWithShellCommand:"git branch -l"))) | |
| (let (current-branch ((/^\* (.*)$/ findInString:branches) groupAtIndex:1)) | |
| (manager changeCurrentDirectoryPath:previous-directory) |
| class Tester { | |
| import com.withoutincident.formality._ | |
| import Formality._ | |
| import Html5Validations._ | |
| import org.joda.time.DateMidnight | |
| import org.joda.time.format.DateTimeFormat | |
| private implicit val dateMidnightValueConverter = { value: String => | |
| val locale = S.locale |
| package net.liftweb.http | |
| import scala.xml._ | |
| import net.liftweb.common._ | |
| import js._ | |
| import net.liftweb.util.Helpers._ | |
| object FormHelpers { | |
| /** |
| package com.openstudy { package snippet { | |
| import scala.xml._ | |
| import net.liftweb.http.S | |
| import net.liftweb.util.Helpers._ | |
| class Layout { | |
| def render(xhtml:NodeSeq) = { | |
| if (S.request.map(_.ajax_?) == Full(true)) { | |
| S.skipXmlHeader = true |
| liftComet.lift_sessionLost = function() { | |
| $('body').append( | |
| $('<iframe src="' + location.toString() + '">') | |
| .attr('id', 'reload-iframe') | |
| ) | |
| var newWindow = $('#reload-iframe')[0].contentWindow | |
| function preventInitialCometTransaction() { | |
| if (newWindow.liftComet && typeof newWindow.liftComet.lift_cometEntry == 'function') { | |
| liftComet.lift_cometEntry = newWindow.liftComet.lift_cometEntry; |
| /** | |
| * A structural type for an expression that has a getFirst and a getSecond method | |
| * which both return a Symbols.Type. | |
| */ | |
| type TwoPartExpression = { | |
| def getFirst : Symbols.Type | |
| def getSecond : Symbols.Type | |
| } | |
| /** |
| package com.openstudy { package snippet { | |
| import scala.xml._ | |
| import java.io.InputStreamReader | |
| import net.liftweb.common._ | |
| import net.liftweb.http._ | |
| import LiftRules._ | |
| import net.liftweb.util._ | |
| import Helpers._ |
| # DataHolder handles most Knockout binding situations for properties | |
| # transparently. You can instantiate a DataHolder with a set of attributes | |
| # that are turned into observable properties of the DataHolder. | |
| # | |
| # Attributes passed in that are functions are not wrapped in an observable. | |
| # Additionally, all attributes whose names end in `Fn' are ensured to be | |
| # wrapped in functions and set as is, without an observable. | |
| # | |
| # All attributes are passed through the preprocessAttribute function, which | |
| # can be overridden in child classes. These can be used to do type |