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
/* | |
Copyright 2011 Martin Hawksey | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
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
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'lrvick/Conque-Shell' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'maksimr/vim-jsbeautify' |
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
export ANDROID_HOME=/home/bonnie/Android/Sdk | |
export PATH=${ANDROID_HOME}/tools:${PATH} | |
export PATH=${ANDROID_HOME}/platform-tools:${PATH} | |
export PATH=${ANDROID_HOME}/build-toold:${PATH} | |
export PATH=${ANDROID_HOME}/../android-ndk-r10e:${PATH} | |
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 | |
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
/** | |
* fullscreenify() | |
* Stretch canvas to size of window. | |
* | |
* Zachary Johnson | |
* http://www.zachstronaut.com/ | |
* | |
* See also: https://gist.github.com/1178522 | |
*/ |
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
cordova build android -- --ant |
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
<VirtualHost *:80> | |
ServerName Bonfire.local | |
DocumentRoot /var/www/Bonfire.local | |
<Directory /var/www/Bonfire.local> | |
Options FollowSymLinks | |
AllowOverride All | |
</Directory> | |
</VirtualHost> |
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 app = require("express")(); | |
app.get('/user', function(req, res){ | |
res.send(200, { name: 'marcus' }); | |
}); | |
// In order to reach the app from other modules | |
// we need to export the express application | |
module.exports.getApp = app; |
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 java.io.*; | |
class LinkedList { | |
Node last = null; | |
// function to create the link list | |
public void createList(int n) { | |
Node node = new Node(); | |
node.value = n; |
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
onsider a domain www.example.com. You have created an appliaction in its root folder. | |
Now you purchase a new subdomain www.newdomain.net that is like root/newdomain/ in your server. | |
When you place your cake application inside this newdomain folder, you will encounter problem regarding | |
redirect, sometimes you css will be not getting loaded same is with javascript and images. | |
To overcome this problem create 3 .htaccess files in this order:- | |
1) .htaccess file in root/newdomain/ folder write this:- | |
<IfModule mod_rewrite.c> | |
RewriteEngine on |
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
ALTER TABLE user | |
ADD CONSTRAINT fk_Pin | |
FOREIGN KEY (pin_no) | |
REFERENCES pin(pin_no) | |
ON DELETE CASCADE | |
ON UPDATE CASCADE |