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
Context context = this.getApplicationContext(); | |
Facebook facebook = new Facebook(YOUR_FACEBOOK_ID); | |
AsyncFacebookRunner facebookAsync = new AsyncFacebookRunner(facebook); | |
Handler facebookHandler = new Handler(); | |
SessionStore.restore(facebook, context); | |
Bundle params = new Bundle(); | |
params.putString("message", "This is my message."); | |
facebookAsync.request("me/feed", params, "POST", new RequestListener() { |
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
/// <summary> | |
/// Gets the console secure password. | |
/// </summary> | |
/// <returns></returns> | |
private static SecureString GetConsoleSecurePassword( ) | |
{ | |
SecureString pwd = new SecureString( ); | |
while ( 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
/*! | |
* Bootstrap v1.2.0 | |
* | |
* Copyright 2011 Twitter, Inc | |
* Licensed under the Apache License v2.0 | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Designed and built with all the love in the world @twitter by @mdo and @fat. | |
* Date: Fri Sep 16 11:24:41 PDT 2011 | |
*/ |
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
# Traversing arrays and objects in CoffeeScript | |
# The array and object we use for testing | |
arr = [1, 2, 3, 4, 5] | |
obj = {a: 1, b: 2, c: 3, d: 4, e: 5} | |
# 'in' has a different meaning in CoffeeScript than in JavaScript | |
# CS: element in array -> JS: array.indexOf(element) >= 0 | |
console.log '5 in arr: ' + (5 in arr) |
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>A Yammer App</title> | |
<script src="https://assets.yammer.com/platform/yam.js"></script> | |
<script> | |
yam.config({appId: "APP-ID"}); | |
</script> | |
</head> | |
<body> | |
<button onclick='post()'>Post on Yammer!</button> |
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
#For Visage Compilation/Build/Run | |
command.compile.*.visage=visagec -d . $(FileNameExt) | |
command.build.*.visage=visagec -d . *.visage | |
command.go.*.visage=visage -cp . $(FileName) | |
# jad = decompiled class files; pde = Processing.org sketch files | |
file.patterns.visage=*.visage | |
lexer.$(file.patterns.visage)=cpp | |
word.characters.$(file.patterns.visage)=$(word.chars.cxx)$- |
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 visage.javafx.scene.effect; | |
import visage.animation.Interpolator; | |
import visage.animation.Timeline; | |
import visage.javafx.geometry.Rectangle2D; | |
import visage.javafx.stage.Stage; | |
import visage.javafx.scene.Group; | |
import visage.javafx.scene.Scene; | |
import visage.javafx.scene.effect.*; | |
import visage.javafx.scene.control.Button; |
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
using (ClientContext clientContext = new ClientContext("https://yoursite.sharepoint.com/")) | |
{ | |
var passWord = new SecureString(); | |
foreach (char c in "yourpassword".ToCharArray()) passWord.AppendChar(c); | |
clientContext.Credentials = new SharePointOnlineCredentials("[email protected]", passWord); | |
Web web = clientContext.Web; |
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
CREATE TABLE UT_USERS (USERID INTEGER Not null primary key generated always as identity (start with 1, increment by 1),USERNAME VARCHAR(15) NOT NULL UNIQUE,PASSWORD VARCHAR(15) NOT NULL, LASTLOGIN TIMESTAMP) |
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
(function($){ | |
$(document).ready(function(){ | |
// Ensure that the SP.UserProfiles.js file is loaded before the custom code runs. | |
SP.SOD.executeOrDelayUntilScriptLoaded(loadUserData, 'SP.UserProfiles.js'); | |
}); | |
var userProfileProperties; | |
function loadUserData(){ |
OlderNewer