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
const NanoSecondComposedDatePrecision = 6; // +3 of the millisecond precision makes a 9 | |
export class NanoSecondComposedDate { | |
public date: Date; | |
public original: string; | |
public remainder: number; | |
public time: number; | |
constructor(str: string) { | |
this.original = str; | |
this.date = new Date(str); | |
this.time = this.date.getTime(); |
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 will show here some of the basic shortcuts that are used within the templates | |
//First off we have the basic ternary operator | |
let something = <div>{this.props.user.name ? <span>{this.props.user.name}</span> : <span>No user name</span>}</div> | |
//it is a shorcut to: | |
let something; | |
if (this.props.user.name){ | |
something = <div><span>{this.props.user.name}</span></div> | |
} else { |
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
def load(self, lng, lat, distance=1): | |
left = lng - self.diff | |
right = lng + self.diff | |
top = lat + self.diff | |
bottom = lat - self.diff | |
oResponse = requests.get(self.oEndpoint, params={ | |
'bbox': ",".join([str(left),str(bottom),str(right),str(top)]) | |
}, stream=True) | |
oResponse.raw.decode_content = True |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<osm version="0.6" generator="CGImap 0.6.0 (8706 thorn-03.openstreetmap.org)" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/"> | |
<bounds minlat="10.6487100" minlon="-71.5971500" maxlat="10.6511100" maxlon="-71.5929000"/> | |
<node id="108423028" visible="true" version="4" changeset="12526935" timestamp="2012-07-28T19:08:23Z" user="George Miquilena" uid="754332" lat="10.6478943" lon="-71.5976575"/> | |
<node id="108424009" visible="true" version="2" changeset="12526935" timestamp="2012-07-28T19:08:32Z" user="George Miquilena" uid="754332" lat="10.7393064" lon="-71.6321663"/> | |
<node id="108426329" visible="true" version="5" changeset="12526935" timestamp="2012-07-28T19:08:15Z" user="George Miquilena" uid="754332" lat="10.7238196" lon="-71.6117978"/> | |
<node id="108426359" visible="true" version="4" changeset="12526935" timestamp="2012-07-28T19:08:16Z" user="George Miquilena" uid |
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
print $x-$x | |
base START $init INTERNAL FUNCTION +0ms | |
base START init INTERNAL FUNCTION IDR0 U0 +4ms | |
base END init +1ms | |
base END $init +1ms | |
base START clone ACTION PRINT +2ms | |
base START clone OPERATION SUM +0ms | |
base START clone TYPE VAR +0ms | |
base END clone +1ms | |
base START clone OPERATION SIGN +0ms |
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
09:48:50,320 INFO [org.jboss.modules] (main) JBoss Modules version 1.5.2.Final | |
09:48:50,684 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final | |
09:48:50,827 INFO [org.jboss.as] (MSC service thread 1-8) WFLYSRV0049: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) starting | |
09:48:52,927 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0015: Re-attempting failed deployment pyramus-0.7.63-SNAPSHOT.war | |
09:48:53,000 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found reports-0.7.63-SNAPSHOT.war in deployment directory. To trigger deployment create a file called reports-0.7.63-SNAPSHOT.war.dodeploy | |
09:48:53,000 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found pyramus-0.7.63-SNAPSHOT.war in deployment directory. To trigger deployment create a file called pyramus-0.7.63-SNAPSHOT.war.dodeploy | |
09:48:53,057 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating |
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
SET people; | |
ID 100038847; | |
{ | |
"name":"Jonh", | |
"sex":"M", | |
"friends":(GET /people/${self}/friends), | |
"setName":(POST /people/${self}/name ${value}), | |
"setDescription":(POST /people/${self}/description ${value}), | |
} |
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
-- Register the client event for an incoming message sent by another user | |
SELECT eventzServ.registerCli('incomingMessage',E'Provides a new message from another user\n' | |
'message: The message that the other user sent\n' | |
'origin: The ip of origin as a string'); | |
-- Register the client event for an incoming message sent by the server | |
SELECT eventzServ.registerCli('incomingMessageServer',E'Provides a new message from the server\n' | |
'message: The message that the server sent\n'); | |
-- A controller for when a new message is sent to be post | |
CREATE OR REPLACE FUNCTION controllers."postMessage"(sender BYTEA, data JSONB, handle TEXT) RETURNS VOID AS $$ |
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
Math guide to human ethics? | |
FIRST | |
Is it a behaviour/activity? | |
NEGATIVE | |
Does it decrease your survival posibilities? | |
Does it affect your cub/infant negatively? | |
physically | -1(factor) otherwise 0; | |
physicologically | -1(factor) otherwise 0; |
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 os import path | |
import json | |
import re | |
try: | |
from .Psy import * | |
from .PsyElem import * | |
from .psyutil import * | |
except: | |
from Psy import * |