Skip to content

Instantly share code, notes, and snippets.

if (foo == 1 && (bar < 5 || baz == 7)) {...}else{...}
1>------ Rebuild All started: Project: Chroma Sync, Configuration: Debug Any CPU ------
1> Chroma Sync -> C:\Users\NMA04\Dropbox\Projects\Razer\Chroma SDK\Chroma Sync\Chroma Sync\bin\Debug\Chroma Sync.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
1>------ Rebuild All started: Project: Chroma Sync, Configuration: Debug Any CPU ------
1> Chroma Sync -> C:\Users\NMA04\Dropbox\Projects\Razer\Chroma SDK\Chroma Sync\Chroma Sync\bin\Debug\Chroma Sync.exe
1>C:\Users\NMA04\Dropbox\Projects\Razer\Chroma SDK\Chroma Sync\Chroma Sync\Program.cs(8,1): warning : SA1600 : CSharp.Documentation : The class must have a documentation header.
1>C:\Users\NMA04\Dropbox\Projects\Razer\Chroma SDK\Chroma Sync\Chroma Sync\Program.cs(1,1): warning : SA1633 : CSharp.Documentation : The file has no header, the header Xml is invalid, or the header is not located at the top of the file.
1>C:\Users\NMA04\Dropbox\Projects\Razer\Chroma SDK\Chroma Sync\Chroma Sync\Program.cs(8,1): warning : SA1400 : CSharp.Maintainability : The class must have an access modifier.
1>C:\Users\NMA04\Dropbox\Projects\Razer\Chroma SDK\Chroma Sync\Chroma Sync\Program.cs(14,1): warning : SA1400 : CSharp.Maintainability : The method must have an access modifier.
1>C:\Users\NMA04\Dropbox\Projects\Razer\Chroma S
NativeMethods.Init();
Guid test = new Guid();
Custom[] testCustoms = new Custom[1];
testCustoms[0].Color = 0xFF32CC;
testCustoms[0].Key = Razer.Keyboard.Key.Enter;
NativeMethods.CreateKeyboardCustomEffects(0, null, ref test);
NativeMethods.SetEffect(test);
var http = require('https');
http.get("https://www.bungie.net/Platform/Destiny/1/Account/4611686018433775124/Character/2305843009215890708/?definitions=true", function(res) {
console.log("Got response: " + res.keys);
var body = '';
res.on('data', function(d) {
body += d;
});
res.on('end', function() {
// Data reception is done, do whatever with it!
{"membershipType":"1","characterId":"2305843009215890708","itemId":"6917529040445857937"}
NabuNotification *nabuNotification = [[NabuNotification alloc] init];
nabuNotification.text = @"This is for testing only.";
nabuNotification.text1 = @"This line is for your eyes only.";
nabuNotification.text2 = @"The quick brown fox jumps over the lazy dog.";
nabuNotification.iconResId = @"smiley";
[[NabuDataManager sharedDataManager] sendNotificationToBand:nabuNotification withBlock:^(NSDictionary *cb) {
//code
NSLog(@"%@", [cb description]);
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
NabuDataManager *ndm = [NabuDataManager sharedDataManager];
[ndm validateURLResponse:url withBlock:^(NSDictionary *cb) {
NSLog([cb description]);
}];
return YES;
}
What is the JDK and what is the JRE, what is the difference?
What does "static" mean?
What is overriding?
What is overloading?
What is a constructor?