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 math | |
def isSuperSqure(n): | |
hlf=int(math.sqrt(n)) | |
start=0 | |
count=0 | |
while(hlf>=start): | |
if((start+hlf)<=n): | |
no=(start**2)+(hlf**2) | |
if(no>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
#include<stdio.h> | |
#include<conio.h> | |
//int w[20][20]; | |
int w[3][3]={1,2,3,4,5,6,7,8,9}; | |
int N=3; | |
void printer(int n) { | |
int i,j; | |
printf("\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
#include<stdio.h> | |
#include<conio.h> | |
//int w[20][20]; | |
int w[3][3]={1,2,3,4,5,6,7,8,9}; | |
int N=3; | |
void printer(int n) { | |
int i,j; | |
if(n<N/2){ | |
return; |
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 gnome-shell-build-setup.sh | |
Updating jhbuild ... done | |
Installing jhbuild... | |
make: *** [include-check] Error 1 | |
Writing ~/.jhbuildrc ... done | |
Done. |
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
$ (git::master) ./autogen.sh | |
checking for autoconf >= 2.57... | |
testing autoconf2.50... not found. | |
testing autoconf... found 2.68 | |
checking for automake >= 1.8... | |
testing automake-1.11... found 1.11.1 | |
checking for libtool >= 1.5... | |
testing libtoolize... found 2.4 | |
checking for gettext >= 0.12... | |
testing gettextize... found 0.18.1 |
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
$ (git::master) make && make install | |
Making all in po | |
make[1]: Entering directory `/home/vignesh/Source/jhbuild/po' | |
make[1]: Nothing to be done for `all'. | |
make[1]: Leaving directory `/home/vignesh/Source/jhbuild/po' | |
Making all in scripts | |
make[1]: Entering directory `/home/vignesh/Source/jhbuild/scripts' | |
make[1]: Nothing to be done for `all'. | |
make[1]: Leaving directory `/home/vignesh/Source/jhbuild/scripts' | |
Making all in triggers |
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
<html> | |
<head> | |
<link href="static/bootstrap/css/bootstrap.min.css" rel="stylesheet"> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
<script src="static/bootstrap/js/bootstrap.min.js"></script> | |
<script src="static/script.js"></script> | |
<link href="static/main.css" rel="stylesheet"> | |
<title>Address Book</title> | |
</head> | |
<body> |
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
# comparison | |
from functools import total_ordering | |
@total_ordering | |
class Person(object): | |
def __init__(self, name, age): | |
self.name = 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
#!/bin/bash | |
set -e | |
source /etc/environment | |
#sudo add-apt-repository ppa:coolwanglu/pdf3htmlex --yes | |
#sudo apt-get update | |
# sudo apt-get install libpoppler-dev libspiro-dev libcairo-dev autoconf libtool libgtk2.0-dev build-essential | |
export LIBRARY_PATH=/usr/local/lib | |
export LD_LIBRARY_PATH=/usr/local/lib | |
pushd /tmp | |
wget https://github.com/coolwanglu/pdf2htmlEX/archive/v0.11.tar.gz -O - | /bin/tar -zxf - |
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
#!/usr/bin/env bash | |
uwsgi_ini="$( cat <<EOF | |
[uwsgi] | |
http = :8902 | |
thunder-lock = true | |
processes = 2 | |
master = true | |
pidfile = /tmp/uwsgi.pid | |
module = sample.wsgi |
OlderNewer