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
#include <iostream> | |
using namespace std; | |
int main(){ | |
int i; | |
for (i = 0; i < 100; i++) | |
if (i % 3 == 0 && i % 5 == 0) | |
cout<<i<<" FizzBuzz\n"; | |
else if (i % 3 == 0) | |
cout<<i<<" Fizz\n"; |
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
/******************************************************************* | |
* C++ program to convert temperature from either Fahrenheit to * | |
* Celsius or vise-versa. * | |
* * | |
*******************************************************************/ | |
#include <iostream> | |
#include <cctype> | |
using namespace std; | |
int main() |
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
// A small example program using SQLite with C++ | |
#include <iostream> | |
#include <sqlite3.h> | |
using namespace std; | |
static int callback(void *NotUsed, int argc, char **argv, char **azColName) | |
{ | |
int i; | |
for(i=0; i<argc; i++) | |
{ |
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
body { | |
margin: 0; | |
background-image: url(http://subtlepatterns.com/patterns/furley_bg.png); | |
} | |
body > center > table { | |
width: 100%; | |
background-color: transparent; | |
} |
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
/* | |
Theme Name: Twenty Eleven Child | |
Description: Twenty Eleven Child Theme with Horizontal Subnav. | |
Author: Blake <-- That's me! | |
Template: twentyeleven | |
*/ | |
@import url("../twentyeleven/style.css"); | |
/* =Menu |
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
#################################################################### | |
#Python program to convert temperature from either Fahrenheit to # | |
#Celsius or vise-versa. This is a very simple function example. # | |
# # | |
#################################################################### | |
def convert(temp, unit): | |
unit = unit.lower() | |
if unit == "c": |
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
set noswapfile | |
" ================ auto reload vimrc when editing it ================ | |
autocmd! bufwritepost .vimrc source ~/.vimrc | |
" ================ define your colors for todo task note in code ================ | |
if !exists("autocmd_colorscheme_loaded") | |
let autocmd_colorscheme_loaded = 1 | |
autocmd ColorScheme * highlight TodoRed ctermbg=darkgreen guibg=#002b37 ctermfg=LightRed guifg=#E01B1B | |
autocmd ColorScheme * highlight TodoOrange ctermbg=darkgreen guibg=#002b37 ctermfg=LightMagenta guifg=#E0841B |
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
/* | |
Theme Name: Twenty Ten Horizontal Subnav | |
Theme URI: http://enile8.org/blog/adding-horizontal-subnav-to-the-twenty-ten-theme | |
Description: The 2010 theme for WordPress is stylish, customizable, simple, and readable -- make it yours with a custom menu, header image, and background. Twenty Ten supports six widgetized areas (two in the sidebar, four in the footer) and featured images (thumbnails for gallery posts and custom header images for posts and pages). It includes stylesheets for print and the admin Visual Editor, special styles for posts in the "Asides" and "Gallery" categories, and has an optional one-column page template that removes the sidebar. | |
Author: the WordPress team, modified by enile8 | |
Author URI: http://enile8.org | |
Version: 0.1 | |
Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style | |
Template: twentyten | |
*/ |
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
def gcd(arg1, arg2): | |
while arg2 > 0: arg1,arg2 = arg2, arg1 % arg2 | |
return arg1 | |
def contest1(arg1, arg2): | |
result = arg1 * arg2 / gcd(arg1,arg2) | |
return result | |
num1 = int(raw_input('Enter the first number:\n')) | |
num2 = int(raw_input('Enter the second number:\n')) |
OlderNewer