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
inline LLColor3::LLColor3(const char* color_string) // takes a string of format "RRGGBB" where RR is hex 00..FF | |
{ | |
if (strlen(color_string) < 6) /* Flawfinder: ignore */ | |
{ | |
mV[0] = 0.f; | |
mV[1] = 0.f; | |
mV[2] = 0.f; | |
return; | |
} |
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
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char const *argv[]) | |
{ | |
long red = atof(argv[1])*255.f; // RED | |
long green = atof(argv[2])*255.f; // GREEN | |
long blue = atof(argv[3])*255.f; // BLUE | |
printf("RGB = %02lX%02lX%02lX\n", red, green, blue); |
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
Show hidden characters
[ | |
// for .lsl files | |
{ | |
"keys": ["super+l"], // Change here - this is Command + L , for example | |
"command": "build", | |
"context":[ | |
{ "key": "selector", "operator": "equal", "operand": "source.lsl" } | |
] | |
}, | |
// for .ossl files |
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
$ conda list | |
# packages in environment at /Users/xxx/.graphlab/anaconda: | |
# | |
You are using pip version 7.0.3, however version 7.1.2 is available. | |
You should consider upgrading via the 'pip install --upgrade pip' command. | |
_license 1.1 py27_0 | |
abstract-rendering 0.5.1 np19py27_0 | |
alabaster 0.7.3 py27_0 | |
anaconda 2.3.0 np19py27_0 | |
appscript 1.0.1 py27_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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.company</groupId> | |
<artifactId>Executable</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>jar</packaging> | |
<name>Create-Executable</name> |
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
example: com.marklogic.client.example.cookbook.ClientCreator | |
12:40:36.743 [main] DEBUG c.m.client.DatabaseClientFactory - Creating new database client for server at localhost:8000 | |
12:40:36.761 [main] DEBUG c.m.client.impl.JerseyServices - Connecting to localhost at 8000 as rest-writer | |
12:40:37.061 [main] INFO c.m.client.impl.DocumentManagerImpl - Writing content for /example/text.txt | |
12:40:37.062 [main] DEBUG c.m.client.impl.JerseyServices - Sending /example/text.txt document in transaction null | |
Connected to localhost:8000 as rest-writer | |
12:40:38.023 [main] INFO c.m.client.impl.DocumentManagerImpl - Deleting /example/text.txt | |
12:40:38.023 [main] DEBUG c.m.client.impl.JerseyServices - Deleting /example/text.txt in transaction null | |
12:40:38.029 [main] INFO c.m.client.impl.DatabaseClientImpl - Releasing connection | |
12:40:38.029 [main] DEBUG c.m.client.impl.JerseyServices - Releasing connection |
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"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>scope</key> | |
<string>source.lsl</string> | |
<key>settings</key> | |
<dict> | |
<key>icon</key> | |
<string>file_type_lsl</string> |
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"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>scope</key> | |
<string>source.ossl</string> | |
<key>settings</key> | |
<dict> | |
<key>icon</key> | |
<string>file_type_ossl</string> |
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
class View(object): | |
def show_popup_menu(self, items, on_select, flags = 0): | |
""" | |
on_select is called when the the quick panel is finished, and should accept a | |
single integer, specifying which item was selected, or -1 for none | |
""" | |
return sublime_api.view_show_popup_table(self.view_id, items, | |
on_select, flags, -1) |
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
package example; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Set; | |
import java.util.stream.Stream; | |
import org.neo4j.graphdb.GraphDatabaseService; | |
import org.neo4j.graphdb.Label; | |
import org.neo4j.graphdb.Node; |
OlderNewer