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
$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!"); | |
} |
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
decl String:newName[100]; | |
newName = StrCat("Mr. ", 100, GetClientName(client)); | |
SetClientInfo(client, "name", newName); |
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 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 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 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 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 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
<html> | |
<head> | |
<title>Vue.js Animations</title> | |
<script src="https://unpkg.com/vue"></script> | |
<style> | |
* { | |
font-family: sans-serif; | |
} | |
h1 { | |
display: inline-block; |
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
<html> | |
<head> | |
<title>Todo App</title> | |
<meta charset="utf-8"> | |
<script src="https://unpkg.com/vue"></script> | |
</head> | |
<body> | |
<div id="app"> | |
<h1>{{ header }}</h1> | |
<todo-form @add-todo="addTodo"></todo-form> |
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
<html> | |
<head> | |
<title>Todo App</title> | |
<meta charset="utf-8"> | |
<script src="https://unpkg.com/vue"></script> | |
</head> | |
<body> | |
<div id="app"> | |
<h1>Todo App</h1> | |
<todo-form @todo-created="addTodo"></todo-form> |
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
<html> | |
<head> | |
<title>Vue.js Router</title> | |
<meta charset="utf-8"> | |
<script src="https://unpkg.com/vue"></script> | |
<script src="https://unpkg.com/vue-router@2.7.0/dist/vue-router.js"></script> | |
</head> | |
<body> | |
<div id="app"> | |
<nav> |
OlderNewer