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
public function setRho(){ | |
$As = $this->concrete->getAs(); | |
$B = $this->concrete->getB(); | |
$D = $this->concrete->getD(); | |
$this->rho = $As / ($B*$D); | |
} |
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
# Modified from https://gist.github.com/tkf/1299670 by @tkf | |
import matplotlib | |
matplotlib.use('Agg') | |
from matplotlib import pyplot | |
import numpy | |
import cherrypy | |
from cStringIO import StringIO |
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 matplotlib | |
matplotlib.use('Agg') | |
from matplotlib import pyplot | |
import numpy | |
from flask import Flask, send_file | |
from cStringIO import StringIO | |
app = Flask(__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
/* Twitter-like glowing box */ | |
input[type=text], textarea { | |
transition: all 0.30s ease-in-out; | |
-webkit-transition: all 0.30s ease-in-out; | |
-moz-transition: all 0.30s ease-in-out; | |
border:#fff 1px solid; | |
outline:none; | |
padding: 3px 0px 3px 3px; | |
margin: 5px 1px 3px 0px; | |
border: 1px solid #DDDDDD; |
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
<?php | |
$file = 'daftarMilis'; | |
$f=fopen($file,'r'); | |
while($list = fgets($f)){ | |
$list = rtrim($list); | |
exec("echo 'reply_to_address =\042".$list."@ftsl.itb.ac.id\042' > config.data"); | |
exec("echo 'reply_goes_to_list = 2' >> config.data"); | |
exec("echo 'acceptable_aliases = \042".$list."@ftsl.itb.ac.id\042' >> config.data"); | |
exec('/usr/sbin/config_list -i config.data '.$list); | |
} |
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 os | |
os.system("echo 'reply_to_address =\042"+list+"@ftsl.itb.ac.id\042' > config.data") |
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
file = 'fileName' | |
f = open(file, 'r') | |
content = f.readlines() | |
size = len(content) | |
for i in range(size): | |
print content[i].rstrip() |
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
<?php | |
/* | |
this script performs bulk fix url list in mailman | |
you can get url from command 'list_list -b > urlList' | |
urlList contain url per line | |
@author Duken Marga | |
*/ | |
$f=fopen('urlList', 'r'); | |
while($baris = fgets($f)){ | |
$baris = rtrim($baris); |
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
/* | |
coder : duken marga | |
blog : http://duken.info | |
description : integrasi numerik menggunakan motoda trapezoidal, | |
gauss quadrature, simpson, dan jumlah atas dan bawah | |
*/ | |
#include <stdio.h> | |
#include <math.h> | |
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
/* | |
* program untuk mencari solusi persamaan | |
* dengan menggunakan metode secant | |
* coder : duken marga | |
*/ | |
#include <stdio.h> | |
#include <math.h> | |
#define PHI 3.141592654 | |
#define TOLERANCE 10E-10 |
OlderNewer