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
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
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
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')) |
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
#include <stdio.h> | |
int main() | |
{ | |
char str [256]; | |
puts("Enter some text you would like to add to the file:"); | |
fgets(str,255,stdin); | |
FILE * pFile; | |
pFile = fopen("myfile.txt", "a"); | |
if (pFile==NULL) |
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 <stdio.h> | |
#include <time.h> | |
int main () | |
{ | |
time_t rawtime; | |
struct tm * timeinfo; | |
time ( &rawtime ); | |
timeinfo = localtime ( &rawtime ); |
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> | |
#include <string> | |
using namespace std; | |
class alpha | |
{ | |
public: | |
static string alphaFunc() | |
{ | |
return "Greetings from the alpha class.\n"; |
OlderNewer