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
| // ============================================================================= | |
| // Implicit member syntax through a function type — adversarial playground | |
| // ============================================================================= | |
| // | |
| // Feature: a leading dot whose contextual type is a function type `(P...) -> R` | |
| // also considers static members of the return type `R` (enum case constructors, | |
| // static factories). i.e. `.b` may mean `R.b` when `R.b : (P...) -> R`. | |
| // | |
| // Build (feature ON): | |
| // swiftc -typecheck -enable-experimental-feature ImplicitMemberOnFunctionType \ |
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
| protocol BulkIterator { | |
| associatedtype Element | |
| associatedtype Failure: Error = Never | |
| mutating func nextSpan(maximumCount: Int) throws(Failure) -> Element | |
| } | |
| protocol Iterable where Iterator.Failure == Failure, Iterator.Element == Element { | |
| associatedtype Element | |
| associatedtype Failure: Error = Never | |
| associatedtype Iterator: BulkIterator |
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
| // add at line 5: | |
| <select name="NumberOfFarmBiomes" id="NumberOfFarmBiomes"> | |
| <option value="-NumberOfFarmBiomes-">-NumberOfFarmBiomes-</option> | |
| <option value="0">0</option> | |
| <option value="1">1</option> | |
| <option value="2">2</option> | |
| <option value="3">3</option> | |
| <option value="4">4</option> | |
| <option value="5">5</option> | |
| <option value="6">6</option> |
This file has been truncated, but you can view the full file.
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 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
| You're not gonna get | |
| the satisfaction of a | |
| "username confirmed" |
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
| A rebel's guide to No Man's Sky 1.0 (RC1) | |
| Guide version 0.91b | |
| by /u/gistya | |
| Intro: | |
| Below I present to you my guide to No Man's Sky 1.0 (RC1). It was written around the time Foundation update came out, because I went back to 1.00 due to my jetpack getting attached to my ship multiple times. But I held off from publishing it for awhile. | |
| However lately I have started seeing more and more posts from people on Reddit who seem to be getting into 1.00, so I figured it would be a good time to post this guide, since there seems to be interest. Please let me know at gistya@gmail.com if anything seems to be missing from the guide. | |
| Disclaimer: I'm a software developer by day, so I tried to approach this from a developer's point of view and not throw Hello Games under the bus for anything. In fact I was shocked at how great 1.00 was, and it made me realize how most of the things that people on reddit were whining about prior to launch were actually not problems at all, and in fact the release version made the game wors |
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
| /** by Jon Gilbert gistya at gmail **/ | |
| /** NoObjCLinkerFlag.h **/ | |
| #import <Foundation/Foundation.h> | |
| /*!@description Call this function once from somewhere in your lib, and the compiler | |
| will be tricked into loading the classes mentioned in clangFoo below. */ | |
| void preloadXalanDynamicLoads(); |
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
| /Users/sdf/Documents/dev/j2objc/jre_emul/build_result/Classes/org/apache/xalan/templates/TemplateList.m:410:192: warning: comparison of distinct pointer types | |
| ('OrgApacheXpathObjectsXObject *' and 'OrgApacheXpathObjectsXNumber *') [-Wcompare-distinct-pointer-types] | |
| ...[((OrgApacheXpathPatternsStepPattern *) nil_chk(head->m_stepPattern_)) executeWithOrgApacheXpathXPathContext:xctxt withInt:targetNode withOrgApacheXmlDtmDTM:dtm withInt:expTypeID] != JreLoadStatic(OrgApacheXpathPatternsNodeTest, SCORE_NONE)... | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| /Users/sdf/Documents/dev/j2objc/jre_emul/build_result/Classes/org/apache/xalan/templates/TemplateList.m:436:149: warning: comparison of distinct pointer types | |
| ('OrgApacheXpathObjectsXObject *' and 'OrgApacheXpathObjectsXNumber *') [-Wcompare-distinct |
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
| j2objc -d ~/dev/xalan/dev/xalan-ios -classpath ~/dev/java_src/xalan-j_2_7_2/lib -classpath /Library/Java/JavaVirtualMachines/jdk1.8. | |
| 0_65.jdk/Contents/Home/lib/tools.jar -encoding UTF-8 -sourcepath ~/dev/java_src/xalan-j_2_7_2/src $(find ~/dev/java_src/xalan-j_2_7_2/src -name *.java) | grep error | |
| error: /Users/jjj/dev/java_src/xalan-j_2_7_2/src/org/apache/xalan/client/XSLTProcessorApplet.java:23: The import java.applet cannot be resolved | |
| error: /Users/jjj/dev/java_src/xalan-j_2_7_2/src/org/apache/xalan/client/XSLTProcessorApplet.java:24: The import java.awt.Graphics cannot be resolved | |
| error: /Users/jjj/dev/java_src/xalan-j_2_7_2/src/org/apache/xalan/client/XSLTProcessorApplet.java:62: Applet cannot be resolved to a type | |
| error: /Users/jjj/dev/java_src/xalan-j_2_7_2/src/org/apache/xalan/client/XSLTProcessorApplet.java:215: The method getParameter(String) is undefined for the type XSLTProcessorApplet | |
| error: /Users/jjj/dev/java_src/xalan-j_2_7_2/src/org/apache/xalan/client/XSLTProcessorApplet.java:225: The method |
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
| // http://www.wigwag.com/devblog/using-icu4c-regex-test-program/ | |
| // The following code is freeware: | |
| // regextest.c | |
| // Author: ed | |
| // | |
| // Simple test program for regex using ICU's regex matching. | |
| #include <stdio.h> | |
| #include <getopt.h> | |
| #include <string.h> |
NewerOlder