I hereby claim:
- I am github on github.
- I am bilalbudhani (https://keybase.io/bilalbudhani) on keybase.
- I have a public key whose fingerprint is E794 7BD0 243A EBEA 4128 EE83 9D40 47F2 038D C099
To claim this, I am signing this object:
public function Parse ($url) { | |
$fileContents= file_get_contents($url); | |
$fileContents = str_replace(array("\n", "\r", "\t"), '', $fileContents); | |
$fileContents = trim(str_replace('"', "'", $fileContents)); | |
$simpleXml = simplexml_load_string($fileContents); | |
$json = json_encode($simpleXml); | |
return $json; | |
} |
----------------------------------------------------------------------------------------------------------------------------- | |
| | | |
| LIST OF SEARCH APIs ON THE INTERNET COMPILED FOR THE EASE | | |
| | | |
|-----------------------------------------------------------------------------------------------------------------------------| | |
YouTube query: | |
http://gdata.youtube.com/feeds/api/videos?q=SEARCH TERM&v=2&alt=jsonc&max-results=10 | |
Wikipedia query: |
require 'rubygems' | |
responses = Array.new | |
File.foreach('logs/access.log') do |line| | |
log_line = line.chomp.split(/\s+/) | |
responses << log_line[9] | |
end | |
counts = Hash.new(0) |
require 'rubygems' | |
require 'nokogiri' | |
require 'open-uri' | |
### Functions to work around | |
def fetch_top_movies(top_no) | |
top_movies = Array.new | |
ctr = 0 | |
url = 'http://www.imdb.com/chart/top' | |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
pm ERR! System Darwin 13.1.0 | |
npm ERR! command "/usr/local/Cellar/node/0.10.26/bin/node" "/usr/local/bin/npm" "install" "--dev" | |
npm ERR! cwd /Users/bilalbudhani/work/angular-semantic | |
npm ERR! node -v v0.10.26 | |
npm ERR! npm -v 1.4.3 | |
npm ERR! path /Users/bilalbudhani/work/angular-semantic/node_modules/karma-jasmine/node_modules/karma/node_modules/minimatch/node_modules/sigmund/node_modules/tap/node_modules/difflet/node_modules/tap/lib/tap-assert.js | |
npm ERR! fstream_path /Users/bilalbudhani/work/angular-semantic/node_modules/karma-jasmine/node_modules/karma/node_modules/minimatch/node_modules/sigmund/node_modules/tap/node_modules/difflet/node_modules/tap/lib/tap-assert.js | |
npm ERR! fstream_type File | |
npm ERR! fstream_class FileWriter | |
npm ERR! code ENOENT |
I hereby claim:
To claim this, I am signing this object:
org.gradle.parallel=true | |
org.gradle.daemon=true | |
org.gradle.jvmargs=-Xms512m -Xmx1024m |
setInterval(function () { | |
window.scrollTo(0,document.body.scrollHeight); | |
$('.not-following button.user-actions-follow-button').click(); | |
}, 1000) |
$ preact watch | |
> Development server started at http://localhost:8080 | |
/usr/local/lib/~/preact-cli/lib/lib/entry.js | |
Module not found: Error: Can't resolve 'preact/devtools' in '/usr/local/lib/node_modules/preact-cli/lib/lib' | |
resolve 'preact/devtools' in '/usr/local/lib/node_modules/preact-cli/lib/lib' | |
Parsed request is a module | |
using description file: /usr/local/lib/node_modules/preact-cli/package.json (relative path: ./lib/lib) | |
Field 'browser' doesn't contain a valid alias configuration | |
after using description file: /usr/local/lib/node_modules/preact-cli/package.json (relative path: ./lib/lib) | |
resolve as module |