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
<?php | |
// jSON URL which should be requested | |
$app_id = 'app id'; | |
// get access token here: | |
// https://graph.facebook.com/oauth/access_token?client_id=<app id>&client_secret=<app secret>&grant_type=client_credentials | |
$app_access_token = 'access token'; | |
$json_url = 'https://graph.facebook.com/v2.1/'.$app_id.'/accounts/test-users?access_token='.$app_access_token; | |
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
packages: | |
yum: | |
git: [] | |
gcc: [] | |
gcc-c++: [] | |
make: [] | |
zlib-devel: [] | |
pcre-devel: [] | |
openssl-devel: [] | |
libxml2-devel: [] |
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
var summary = require('node-tldr'); | |
summary.summarize('https://aws.amazon.com/blogs/aws/are-you-well-architected/', function(result, failure) { | |
if (failure) { | |
console.log("An error occured! " + result.error); | |
} | |
console.log(result.title); | |
console.log(result.words); | |
console.log(result.compressFactor); | |
console.log(result.summary.join("\n")); |
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
var FeedParser = require('feedparser'), | |
request = require('request'), | |
summary = require('node-tldr'), | |
Promise = require('promise'); | |
function summarize(link) { | |
return new Promise(function(resolve, reject) { | |
summary.summarize(link, function(result, failure) { | |
if (failure) { | |
console.log("An error occured! " + result.error); |
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
#configure this as external tool to run on your project | |
#!/bin/sh | |
#git revision | |
rev=$(git log --pretty=format:'%h' -n 1) | |
#version code | |
vc=$(grep android:versionCode AndroidManifest.xml | cut -f2 -d\") | |
vc=$(($vc+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
<?php | |
class IndexController { | |
public function mailpreviewAction() { | |
$getopt = $this->getRequest()->getOpt(); | |
$extra = $getopt->getRemainingArgs(); | |
// create new getopt | |
$cliopt = new Zend_Console_Getopt(array( | |
'filename|f=s' => 'Zend generated email', | |
'browser|b=s' => 'Open using specified browser app' | |
)); |
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
start | |
= expr | |
expr | |
= & blank* left:(primitive / compound)+ blank* {return left} | |
compounds | |
= left:compound+ {return left} | |
compound | |
= left:primitive blank right:primitive {return [left, right]} |
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
start | |
= left:weather blank right:location {return [left, right]} | |
expr | |
= & blank* left:(primitive / compound)+ blank* | |
compounds | |
= left:compound+ {return left} | |
compound | |
= left:primitive blank right:primitive {return left+right} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd"> | |
<meta> | |
<author>Akhmad Fathonih</author> | |
<description>URL 404 check</description> | |
<sampleQuery><![CDATA[ | |
USE 'https://www.dropbox.com/s/n6xzivkwyfz3lhm/yql-404.xml?dl=1' AS mytable;select * from mytable where url = 'http://bit.ly/13uffkf']]></sampleQuery> | |
<documentationURL></documentationURL> | |
</meta> | |
<bindings> |
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
[ { start: 13, | |
end: 19, | |
spot: 'DESIGN', | |
confidence: 0.158, | |
id: 8560, | |
title: 'Design', | |
uri: 'http://en.wikipedia.org/wiki/Design', | |
abstract: 'Design is the creation of a plan or convention for the construction of an object or a system (as in architectural blueprints, engineering drawings, business processes, circuit diagrams and sewing patterns). Design has different connotations in different fields (see below). In some cases the direct construction of an object (as in pottery, engineering, management, cowboy coding and graphic design) is also considered to be design.', | |
label: 'Design', | |
categories: [ 'Design', 'Architectural design', 'Arts' ] }, |
OlderNewer