Skip to content

Instantly share code, notes, and snippets.

View novalagung's full-sized avatar
🏠

Noval Agung Prayogo novalagung

🏠
View GitHub Profile
var oWindow = $(window);
var minus = 120;
if(oWindow.height() < 720) {
if (oWindow.height() > 540) {
$('#zahirunitlistmain-panel').height(oWindow.height() - minus);
grid.setHeight(oWindow.height() - (minus + 80));
} else {
$('#zahirunitlistmain-panel').height(541 - minus);
grid.setHeight(541 - (minus + 80));
}
$result = array();
foreach($sql as $key => $value){
$result[$key] = $this->db->query($value);
}
/** same with */
$result = array();
for ($i = 0; $i < count($sql); $i++) {
$key = $i;
SET TERM ^ ;
create or alter procedure POSTINGPENJUALAN (
INDEXJURNAL integer,
ISFITURSERIAL varchar(1),
ISFITURLOT varchar(1),
ISUSEBIAYAANTAR varchar(1),
ISPINDAHGUDANG varchar(1),
INVTRANSFER varchar(1))
returns (
# /hellorails2/db/migrate/20121103061219_create_users.rb
class CreateUsers < ActiveRecord::Migration
def up
create_table :users do |t|
t.string "nama", :limit => 25
end
end
def down
user = new User #membuat objek baru bernama user dari Model User
user.name = "noval ganteng" #set nama objek tersebut
user.save #simpan ke database
@novalagung
novalagung / shoutbox.css
Created November 3, 2012 15:21
shoutbox css for blog.novalagung.com
form {
position: fixed !important;
bottom: 0px !important;
margin: 0px !important;
opacity: 0.2 !important;
-webkit-transition: opacity 200ms linear;
-moz-transition: opacity 200ms linear;
-o-transition: opacity 200ms linear;
transition: opacity 200ms linear;
width: 100% !important;
<div class="fb-like-box" data-href="http://www.facebook.com/pages/Blog-dot-noval-agung-dot-com/502123836484095" data-width="250" data-show-faces="true" data-stream="true" data-header="true"></div>
listeners: {
click: function() {
if (filterCount != 1) {
$('#cbFilterCondition').click();
filterCount = 1;
} else {
$('#cbFilterCondition').blur();
filterCount = 0;
}
}
@novalagung
novalagung / Gemfile
Created November 6, 2012 23:10
blog noval agung - rails heroku tutorial 3
gem 'pg'
http://comluv.com/
http://www.w3blog.dk
http://kikolani.com
http://blondish.net
http://www.bizchickblogs.com
http://blog.2createawebsite.com
http://savedelete.com
http://netchunks.com
http://basicblogtips.com
http://weblogbetter.com