This file contains hidden or 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[]) { | |
int *my_array = malloc(sizeof(int)); | |
my_array[0] = 3; | |
my_array[1] = 4; | |
printf("%d, %d\n", my_array[0], my_array[1]); |
This file contains hidden or 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
dependencies { | |
compile fileTree(include: ['*.jar'], dir: 'libs') | |
compile 'com.github.scribejava:scribejava-core:2.7.3' | |
compile 'com.google.code.gson:gson:2.7' | |
compile files('src/main/java/libs/Unsplash-Java-Unofficial.jar') | |
} |
This file contains hidden or 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 com.example; | |
import com.github.rye761.unsplash.Category; | |
import com.github.rye761.unsplash.Photo; | |
import com.github.rye761.unsplash.Stats; | |
import com.github.rye761.unsplash.Unsplash; | |
import java.util.HashMap; | |
public class TestOAuth { |
This file contains hidden or 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 com.example; | |
import com.github.scribejava.core.builder.ServiceBuilder; | |
import com.github.scribejava.core.model.OAuth2AccessToken; | |
import com.github.scribejava.core.model.OAuthRequest; | |
import com.github.scribejava.core.model.Response; | |
import com.github.scribejava.core.model.Verb; | |
import com.github.scribejava.core.oauth.OAuth20Service; | |
import java.io.IOException; |
This file contains hidden or 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
decl String:newName[100]; | |
newName = StrCat("Mr. ", 100, GetClientName(client)); | |
SetClientInfo(client, "name", newName); |
This file contains hidden or 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
$query = "SELECT * FROM `users` WHERE sid64 = :sid64"; | |
$query_params = array( | |
':sid64' => $sid64 | |
); | |
try { | |
$stmt = $db->prepare($query); | |
$result = $stmt->execute($query_params); | |
} catch (PDOException $ex) { | |
return ("Conversion Failed!"); | |
} |
NewerOlder