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
<?php | |
//using this code one can easily upload pictures to TwitPic using TwitPic API and Abraham Willium's Twitter OAuth class | |
/** | |
* @file | |
* User has successfully authenticated with Twitter. Access tokens saved to session and DB. | |
*/ | |
/* Load required lib files. */ | |
session_start(); | |
require_once('twitteroauth/twitteroauth.php'); |
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
<?php | |
$app_id = "xxxxxxx"; //facebook app id | |
$redirect_url = "xxxxxx"; //url to redirct after getting the token, should be in the same domain of the canvas url | |
$app_secret = "xxxxxxx"; //facebook app secret | |
session_start(); | |
$code = $_REQUEST['code']; |
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
We talk about Facebook, online privacy and bullying online, but we don't realize the gravity of it until it happens to someone we know. This is an incident that's currently happening to a friend of mine and I'm blogging about it to let people know and get attention of someone that can help. | |
This friend of mine who I won't tell the name is a student of a government university, and recently she had a request for a date by a person from the navy which she has refused, and because of this this person has created a fake Facebook profile of her using her photos but with a different name and has started posting bad things that are ruining her real life. | |
Also making things worse the person who created this fake profile is adding her real life friends to the fake Facebook profile, because the fake Facebook profile is using her real photos people that she know are accepting the requests and thins are getting worse and worse. And making things extra worse the people who's behind all this is telling that he would stop |
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
javascript:(function(){ | |
if (!($ = window.jQuery)) { | |
var jq = document.createElement('script'); | |
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"; | |
document.body.appendChild(script); | |
} | |
else { | |
releasetheKraken(); | |
} | |
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
var message="Function Disabled!";function clickIE4(){if(event.button==2){alert(message);return ture}}function clickNS4(a){if(document.layers||document.getElementById&&!document.all){if(a.which==2||a.which==3){alert(message);return true}}}if(document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS4}else{if(document.all&&!document.getElementById){document.onmousedown=clickIE4}}document.oncontextmenu=new Function("alert(message);return ture"); |
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
// Sigmoid function | |
function S(num){ | |
var y = 1 / (1 + Math.exp(num)); // y = 1/(1+e^x) | |
return(y) | |
} | |
// Training function | |
function process(arr) { | |
var w = [] | |
var bias = 0.5 |
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
import numpy as np | |
def S(x): | |
return 1/(1+np.exp(-x)) | |
win = np.random.randn(2,2) | |
wout = np.random.randn(2,1) | |
eta = 0.25 | |
# dummy values used to see if everything is correct manually |
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
import numpy as np | |
low = 0 | |
high = 9 | |
chromes = 200 | |
epoch = 2000 | |
achivement = 0.58 | |
cr = 0.4 | |
mr = 0.3 |
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
Privacy Policy | |
Refresh Labs built the Poke app as a Free app. This SERVICE is provided by Refresh Labs at no cost and is intended for use as is. | |
This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service. | |
If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. We will not use or share your information with anyone except as described in this Privacy Policy. | |
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Poke unless otherwise defined in this Privacy Policy. | |
Information Collection and Use |
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
// ************* | |
// A way to pin authenticate a twitter account using commandline and NodeJs | |
// Get your app consumer key and secret from dev.twitter.com | |
// Fill them below | |
// npm install to install packages | |
// node app.js | |
var oauth = require('oauth'); | |
// Get your credentials here: https://dev.twitter.com/apps |
OlderNewer