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
<!DOCTYPE html> | |
<html> | |
<!-- | |
Created using jsbin.com | |
Source can be edited via http://jsbin.com/OtIfiFEw/1/edit | |
--> | |
<head> | |
<script src="http://code.jquery.com/jquery.min.js"></script> | |
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet"> | |
<link href="http://getbootstrap.com/dist/css/bootstrap.css" rel="stylesheet" type="text/css" /> |
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
var CommandWS = require("CommandWS.js"); | |
function TWS(url) { | |
this.cws = new CommandWS(url); | |
this.apiKey = null, | |
this.authKey = null; | |
this.cws.on("open", function() { | |
this.setApiKey("1234"); | |
this.login("smokemachine", "12345", function(error, cmd) { | |
// you are logged in! |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
<title>OLX</title> | |
<style type="text/css"> | |
@import url(https://fonts.googleapis.com/css?family=Open+Sans); | |
#outlook a {padding:0;} | |
body{width:100% !important; margin:0; padding:0; font-family: 'Open sans', sans-serif; color:#5c5c5c; background: #f7f9f9;} |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
<title>OLX</title> | |
<style type="text/css"> | |
@import url(https://fonts.googleapis.com/css?family=Open+Sans); | |
#outlook a {padding:0;} | |
body{width:100% !important; margin:0; padding:0; font-family: 'Open sans', sans-serif; color:#5c5c5c; background: #f7f9f9;} |
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
when I get a instance of a singleton inside of a trait_mod code, I get a object and when I get it on a regular code I get a different object... is that expected? | |
MacBook-Pro-de-Fernando:artigo fernando$ cat Fuzz.pm6 | |
class Test::Fuzz {...} | |
my $instance = Test::Fuzz.bless; | |
class Test::Fuzz { | |
method new {!!!} | |
method instance(::?CLASS:U:) { |
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
MacBook-Pro-de-Fernando:test fernando$ cat ToUse.pm6 | |
unit class ToUse; | |
has %!bla; | |
my $instance = ::?CLASS.bless; | |
method new {!!!} | |
method instance { | |
$instance | |
} | |
method getBla is export { |
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
MacBook-Pro-de-Fernando:test fernando$ cat ToUse.pm6 | |
unit class ToUse; | |
has %!bla; | |
my $instance = ::?CLASS.bless; | |
method new {!!!} | |
method instance { | |
$instance | |
} | |
method getBla is export { |
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
OK! So I wrote my code and it's looking good. There's my incredible sum function: | |
module Sum { | |
sub sum($a, $b) is export { | |
$a + $b | |
} | |
} | |
Great, isn't it?! Let's use it: | |
use Sum; |
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
OK! So I wrote my code and it's looking good. Here's my incredible sum function: | |
module Sum { | |
sub sum($a, $b) is export { | |
$a + $b | |
} | |
} | |
Great, isn't it?! Let's use it: | |
use Sum; |
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
OK! So I wrote my code and it's looking good. Here's my incredible sum function: | |
module Sum { | |
sub sum($a, $b) is export { | |
$a + $b | |
} | |
} | |
Great, isn't it?! Let's use it: | |
use Sum; |
OlderNewer