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
(defn my-last [xs] | |
(if (= (count xs) 1) | |
(first xs) | |
(my-last (rest xs)))) |
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
require! [jison, util] | |
Parser = jison.Parser | |
_ = (expr) -> | |
rx = // | |
^function\s*\(\)\s*\{\s* | |
( | |
[\s\S]* | |
); |
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
public class IUmaClasse<T> | |
{ | |
public interface Usando<M> | |
{ | |
T FazAlgo<M>(); | |
} | |
} | |
public class ClassTeste : IUmaClasse<string>.Usando<bool> | |
{ |
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
using System; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace TestProject3 | |
{ | |
public interface IExecuteType<T> | |
{ | |
bool IsExecuted { get; set; } | |
} |
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
public class StringUtils { | |
public static boolean isBlank(String str) { | |
int strLen; | |
if (str == null || (strLen = str.length()) == 0) { | |
return true; | |
} | |
for (int i = 0; i < strLen; i++) { | |
if ((Character.isWhitespace(str.charAt(i)) == false)) { | |
return false; | |
} |
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
(defn blank? [s] (every? #(Character/isWhitespace %) s)) |
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
; Sample - Windows Form made in ClojureCLR | |
; Diullei Gomes | |
; diullei@gmail.com | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
(System.Reflection.Assembly/LoadWithPartialName "System.Windows.Forms") | |
(import '(System.Windows.Forms MessageBox Form Button)) | |
(import '(System.Windows.Forms Application)) |
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
(defstruct cliente :codigo :nome) |
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
(defn blank? [s] (every? #(Char/IsWhiteSpace %) s)) |
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
(defstruct person :first-name :last-name) |
OlderNewer