Skip to content

Instantly share code, notes, and snippets.

Minhaj minhajkk

Block or report user

Report or block minhajkk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Copied from

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl | sh
minhajkk / page-scroll-script
Last active Dec 18, 2015
To scroll the page up to given element.
View page-scroll-script
$('html, body').animate({
scrollTop: $('#elementId').offset().top
minhajkk / remove-non-serializable-objs-from-flow
Last active Dec 18, 2015
Method to remove non serialized objects from flow.
View remove-non-serializable-objs-from-flow
* To remove non serialized objects from flow.
* @param flow
* @return
private removeNonSerializableFromContext(def flow){
def remove = []
flow.persistenceContext.getPersistenceContext().getEntitiesByKey().values().each { entity ->
if(!entity instanceof Serializable){
minhajkk / CompileSources.groovy
Created Jul 8, 2012
gant script for generating stubs from a whizdul file...
View CompileSources.groovy
import grails.util.GrailsUtil
includeTargets << grailsScript("Init")
target(main: "The description of the script goes here!") {
File whizdul = new File("${basedir}/grails-app/conf/enterprise.wsdl")
if (whizdul.exists()) {
String[] attrs = [
You can’t perform that action at this time.