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> | |
#define Nmax 1026 | |
using namespace std; | |
FILE *c,*d; | |
short int m,n,a[Nmax],b[Nmax],dp[Nmax][Nmax],path[Nmax][Nmax]; | |
void read() |
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
/* | |
* ===================================================================================== | |
* | |
* Filename: matrix_min_cost_path.cpp | |
* | |
* Description: | |
* | |
* Version: 1.0 | |
* Created: 07/21/2014 02:23:53 PM | |
* Revision: none |
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
FBRequest* friends_request = [FBRequest requestForMyFriends]; | |
[friends_request startWithCompletionHandler:^(FBRequestConnection* connection, | |
NSDictionary* result, | |
NSError* error) | |
{ | |
NSArray* friends = [result objectForKey:@"data"]; | |
//... | |
for (NSDictionary<FBGraphUser>* friend in friends) | |
{ | |
[friends_name addObject:friend.name]; |
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
#define BIGPRIME 4979 | |
class Solution | |
{ | |
private: | |
typedef struct element | |
{ | |
int value; | |
int index; | |
}Element; |
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
Awesome git tutorial, learn by doing in browser. | |
https://try.github.io/levels/1/challenges/1 | |
/* Set up Git Configuration */ | |
git config --global user.email "[email protected]" | |
git config --global user.name "Your Name" | |
git config --global core.editor "vi" | |
git config --global color.ui true |
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
vector<string> anagrams(vector<string> &strs) | |
{ | |
int strs_size = strs.size(); | |
vector<string> result; | |
map<string, vector<string> > m; | |
for (int i = 0; i < strs_size; i++) | |
{ | |
string temp = strs[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
import tweepy | |
CONSUMER_KEY = '...' | |
CONSUMER_SECRET = '...' | |
API = "" | |
initial_logged_in_user = "" | |
def main(request): | |
""" main view of app, either login page or info page """ |
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
\documentclass[a4paper]{book} %asa incepe documentul. orice e pus cu paranteze patrate e parametru optional. aici am ales ca textul sa fie formatat pregatit pentru imprimare pe a4 | |
\usepackage{amsmath,amssymb,amsthm} %pachete pentru simboluri matematice | |
\usepackage{xcolor} %pachet pentru scris colorat | |
\usepackage{hyperref} %pachet pentru hyperlinks - sa poti trimite in document catre un alt capitol, de exemplu "vezi capitolul cutare" | |
\usepackage{caption} %pentru figuri | |
\usepackage{enumerate} %pentru optiuni de bullets si numbering | |
\usepackage[margin=1cm]{geometry} %pentru a ingusta marginile | |
\usepackage{graphicx} %pentru a include poze | |
\usepackage[Sonny]{fncychap} %sa apara titlurile frumoase. in loc de Sonny, mai poti pune Glenn si Bjornstrup |
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
\chapter{Primul capitol} | |
\section{Prima sectiune} | |
\subsection{Subsectiune} | |
\subsubsection{Sub-subsectiune} | |
\begin{center} | |
{\large\bf Ceva mare si gros :) } %bf = bold font. separi intre acolade daca vrei sa aplici ceva numai unei bucati. daca nu separam textul asta, facea totul bold |
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
# | |
# Makefile for compiling IndexFiles.java and SearchFiles.java | |
# | |
# define a makefile variable for the java compiler | |
# | |
JCC = javac | |
# define a makefile variable for compilation flags | |
# the -g flag compiles with debugging information |
OlderNewer