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
let mapleader="," | |
" load plugins | |
execute pathogen#infect() | |
let g:EasyMotion_leader_key = '<Leader>' | |
map <F2> :NERDTreeToggle<CR> | |
let NERDTreeShowLineNumbers=1 | |
let NERDTreeShowHidden=1 | |
" General configuration |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
public function successfulSomething($data) { | |
$email = $this->email; | |
$email->subject('You have successfully done something:' . $data['title']); | |
$email->template('successful_done'); | |
// This is outdated | |
// $email->sendAs = 'text'; | |
$email->emailFormat('html'); // This will allow the view to use html tags to be reflected in the email. | |
$email->viewVars(array('data' => $data); // set multiple variables into email view. |
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
#!/bin/bash | |
### | |
# | |
# forked from https://gist.github.com/1264701/08f93534ba177f173b9382b53c419cd0de5b07ea | |
# Copyright (c) 2011 Cake Development Corporation (http//cakedc.com) | |
# | |
# Ubuntu 12.10 based web server installation script | |
# Run this by executing the following from a fresh install of Ubuntu 12.10 server: | |
# |
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
import java.util.*; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.io.*; | |
public class OptionPane { | |
public static void main(String []args){ | |
Object[] options = { "OK", "Cancel" }; | |
int choice = JOptionPane.showOptionDialog(null, "Do you want to quit?", | |
"Exiting", | |
JOptionPane.YES_NO_OPTION, |
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
Human::Human(){ | |
// what you want the function to do | |
} | |
String Human::getName(){ | |
// what you want the function to do | |
} | |
void Human::setAddress(string){ | |
//what you wan the function to do |
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
import java.util.*; | |
import java.io.*; | |
public class TestTry{ | |
public static void main(String []args){ | |
int a = 5; | |
int b = receiveNumberFromUser(); | |
} |
NewerOlder