Embed a script from github in wordpress posts - html

I use github to backup and share my scripts. I'd like to be able to post some of these on my blog. Is it possible to embed a script (and syntax hightlight it if possible) into my wordpress blogs? This is just one of them I'd like to do. Any thoughts be appreciated.

Something like https://gist.github.com/ ?

Check out:
http://wordpress.org/extend/plugins/embed-github-gist/
and
http://wordpress.org/extend/plugins/syntaxhighlighter/screenshots/

Found a way to do this myself. Pointing out GitHub Gist it looks like is the best solution. Since gists are repositories, I learned I can update them and hence scripts on my blog will be updated. I wrote a script for it and posted it here. Thanks for the help/comments guys.

Related

PHP file losing PHP properties in PhpStorm

I do not know why, but in PhpStorm (version 2021.2) one of my php files
lost php properties:
And many functions of php are not applied...
Googling I found hints that I have to right-click on this file and select an option like “Mark as php.”
But I did not find such option in PhpStorm...
How can I restore it?
Thanks in advance!
You should have an Override file type option when you right-click the file
And then you can select PHP.
As a "more permanent" solution you might want to check the File Types in Settings, under Editor, and try to see if there's something weird there.
You might want to check #LazyOne comment, which contains a SOF post, it might be useful. I also want to say thanks to him for pointing that out and give him credits for the post.

What does the _val_: do in Solr and what is it for?

I am new to Solr and I am trying to get my head around it. I can't for the life of me find any decent documentation for Solr. I've checked on the official page to see what _val_ does but it doesn't explain it well.
If someone can explain it here and give examples of how it's used that would be great!
_val_ is a hook provided by Solr for FunctionQuery. You can pass in a function to the query to manipulate the score of a document.
Ex:
_val_:"recip(rord(myfield),1,2,3)"
Refer here for the SolrQuerySyntax

Have you got any working DirectCanvas examples from AppMobi.com?

Where I can find some working code or any instruction to DirectCanvas from AppMobi.com?
There is some sample code on Git a link but I can't understand how can I Run it?
Everything right now is targeted towards ImpactJS. There are sample apps when you purchase the GameProXDK and documentation is found at http://www.appmobi.com/documentation/gamingAPI.html
We are currently working on samples for NON- ImpactJS code. The main thing is that you have two Webviews, one the canvas calls are executed in, the other is your app. The documentation talks about that and details how to make calls between the two.
http://forums.appmobi.com has a thread about getting it running standalone with a sample bundle to use.
Has anbody actually tried using directCanvas seriously? I cannot find a single blog post about somebody actually using it. The whole experience is really bad with this crazy java XDK tool/thingamagica. Took me 20mins to get CocoonJS running.

HTML Comments Extracter

I am well aware that parsing HTML with regex has its many caveats and vociferous opponents. So rather than trying to re-invent the wheel, I'm looking for a tool that I can point to a web page and say "Get me the comments, b*tch".
Anyone able to advise?
I was reading some OWASP documentation or a security blog, and I'm almost certain I saw a tool performing this task. Google has been zero help unfortunately.
Cheers
If you want a Java solution try HTMLParser and look for RemarkNodes.
Mhhhhh...I think a search in Google with the OS you use and some clever keyword gives you all you want. For UNIX based system looks at: parse HTML with SED and PERL
For Windows OS I think you can search something with VBS (VBScript).

Pylons TextMate Bundle

I am looking for a TextMate Bundle for Pylons development. Does anyone know of an existing bundle for Mako and/or SQLAlchemy.
I found these two existing articles but the links are no longer valid
If someone knows of a currently active link please let me know
Thanks
Hey Ryan. Had the same issue, but eventually found it cached somewhere. Anyhow, for future generations I've put up a new Git repo with it:
http://github.com/williamsjj/Mako.tmbundle
Just put the Mako.tmbundle here: ~/Library/Application\ Support/TextMate/Bundles/