How to make the source code look fancy in Tumblr ;)
Easy steps by scheems
Game of Thrones Daily
RMH
Three Goblin Art
occasionally subtle

if i look back, i am lost

ellievsbear

blake kathryn
Keni
Sweet Seals For You, Always
Show & Tell
TVSTRANGERTHINGS
Stranger Things

tannertan36
almost home

PR's Tumblrdome
NASA
Cosimo Galluzzi
Monterey Bay Aquarium
AnasAbdin
we're not kids anymore.
seen from South Korea

seen from United States

seen from Malaysia

seen from United States
seen from United States

seen from United States
seen from United Arab Emirates

seen from Malaysia
seen from Venezuela
seen from United States

seen from United States
seen from United States

seen from Russia
seen from United States

seen from United States

seen from United States

seen from United States
seen from United States

seen from United States

seen from United States
@admix-dev
How to make the source code look fancy in Tumblr ;)
Easy steps by scheems
const char* nstrcat( char* to, ...); //strcat with >= 1 arguments
This program concatenates n amounts of strings, so in the output the user will see one long string.
https://github.com/admix/admixSoft/blob/master/OOP344/nstrcat.cpp
#include <iostream> #include <stdarg.h> using namespace std; const char* nstrcat(char* to, ...); int main(){ //Sample main() to test the program char str[100] = ""; char first[] = "Space"; char second[] = "Explorer"; cout<<nstrcat(str, first, " ", second, " HeeHaw", '\0')<<endl; return 0; } const char* nstrcat( char* to, ...){ char* inTo; int i = 0; va_list varg; va_start(varg, to); inTo = va_arg(varg, char*); while(*to)to++; while(inTo && *inTo){ //returns '1' if true while(*inTo){ to[i] = *inTo; i++; //keep going through the arguments inTo++; } inTo = va_arg(varg, char*); } va_end(varg); return to; }
Conversion char into int
This is a link to my program on github that converts char into int.
https://github.com/admix/admixSoft/blob/master/OOP344/ascToInt.cpp
Would love to get a feedback or suggestions :)
Customized my blog, so Source Code looks fine now:)
// This block of code performs conversion char to int // Returning '0' if not a number // ascToInt.cpp // Created by Alexander on 2013-05-21. // Copyright (c) 2013 Alexander. All rights reserved. // #include <iostream> using namespace std; int ascToInt(const char *ch); int main(){ //sample main() where you can test the function int num; char* str; cout<<"Enter a number: "; cin>>str; num = ascToInt(str); cout<<"number = "<<num<<endl; return 0; } int ascToInt(const char *ch){ int out; int calc; out = 0; calc = 1; while (((*ch) == '+') || ((*ch) == '-')){ //checking the sign if (*ch == '-') calc = calc * -1; //if negative ch++; } do{ //converting char by char out = (out * 10) + ((*ch) - '0'); //substracting 48 to get the real number ch++; }while((*ch <= '9') && (*ch >= '0')); //checking if it’s a number return (out * calc); }
This post outlines installing Apache, PHP, and MySQL on Mac OS X. In addition, It covers configuration of the Virtual Hosts and installation the PHPMyAdmin.
It probably doesn't come as much of a surprise to runners out there that listening to music when running can increase your performance, but how much and why? In his book Inside Sport Psychology, Dr. Coastas Karageoghis claims that music can increase your running performance by a hefty 15 percent, but only if you're a certain type of runner.
Oliver Steele created a great image explaining how the transporting in Git works.
The full article explaining everything in detail can be found here.
And one more article by Oliver Steele concerning the Git Workflow here.
Discover hundreds of things to see and do in England with our new searchable map - including great days out in the countryside and cities, taking in historic highlights, cultural masterpieces, beautiful beaches - and even the odd pub or two
My Top 10 "Sublime Text 2" Plugins
This guy lists really useful and must have plugins for Sublime Text 2 IDE.
I will add some more:
1) SFTP - that allows you ftp/sftp to the files;
2) Python Auto-Completion - the name says the function;
3) GitHub Tools - helpful tools to work with github.
Adding Auto-Completion to the "git" commands (Mac OS)
Auto-Completion is a really useful tool that accelerates your work.
Several steps to do:
1) Download git source code;
2) Go inside the contrib/completion directory, and find a file git-completion.bash, and copy it to your home directory (cp git-completion.bash ~/.git-completion.bash);
3) Add source ~/.git-completion.bash to the .bash_profile file which is in your home directory as well;
4) To let it work for every user on this machine do: cp .bash_profile /opt/local/etc/bash_completion.d ;
Now you can auto-complete git commands using Tabs. Really useful and easy:)
Many of you have seen the tree command being used on a few Ruby on Rails and Git screencasts such as the ones on Gitcasts. The tree package is available on most package managers such as MacPorts and Fink for Mac OS X, however it’s nice to roll your own. This tutorial shows you how.
...
How to add 'll' ; 'la' ; 'lla' commands to your Mac OS
Using ls and ls -al is not really convenient and a fast way to accomplish things. There are no such commands as ‘ll’ or ‘la’ on Mac OS, but its easy to install them.
//comments are with ”#” sign
Type in terminal:
open /Users/User_name/.bash_profile #where User_name is your’s computer name
#This will open .bash_profile in Text_Editor
#Type there:
alias la=”ls -Ga” #adding la command
alias ll=”ls -Gl” #adding ll command
alias lla=”ls -Gla” #adding lla command
#Save this file, restart the terminal and here we go :)
Easy life starts here… :)
Lets get it started!!! Geeks part...
This part of my blog will be related to the programming questions and mostly solutions that I will implement! Also I will try to answer your questions here, so you can ask me anything what is related to programming in the "ask me" section.:)
24 hours in pictures Mee-Lai Stone, guardian.co.uk
24hours in pictures...
Raccoon video streaming
Jack,
I have no problem with your success. You’ve earned your success; for the most part. The problem is, you wholesale ripped off my identity. Grand theft. I don’t mean that in a small way, I mean that in a big way. You are not just trying to be the next me, you are trying to be me....
Just make everything possible!!!