This file contains hidden or 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
db.RatioFormula.find({ _id: { $in: [ | |
"GPMARGIN", | |
"EBITDAMARGIN", | |
"PBTMARGIN", | |
"PATMARGIN", | |
"ROCE", | |
"CASHPROFIT" | |
] } }).forEach(function (d) { | |
d.subsection = "PROFITABILITY RATIO" | |
db.RatioFormula.save(d) |
This file contains hidden or 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
svn update | |
$GOPATH/bin/gorep -path="." -from="eaciit/x10" -to="eaciit/x10-dev" | |
sudo pkill X10-dev | |
rm nohup.out | |
go build -o X10-dev | |
nohup ./X10-dev & |
This file contains hidden or 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
// This bit is important. It detects/adds XMLHttpRequest.sendAsBinary. Without this | |
// you cannot send image data as part of a multipart/form-data encoded request from | |
// Javascript. This implementation depends on Uint8Array, so if the browser doesn't | |
// support either XMLHttpRequest.sendAsBinary or Uint8Array, then you will need to | |
// find yet another way to implement this. (This is left as an exercise for the reader, | |
// but if you do it, please let me know and I'll integrate it.) | |
// from: http://stackoverflow.com/a/5303242/945521 | |
if ( XMLHttpRequest.prototype.sendAsBinary === undefined ) { |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Hello FB</title> | |
</head> | |
<body> | |
<div id="fb-root"></div> | |
<div id="fb-content"></div> | |
<div> |
This file contains hidden or 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
if r.Method != "POST" { | |
http.Error(w, "Only accept POST request", http.StatusBadRequest) | |
return | |
} | |
basePath, _ := os.Getwd() | |
reader, err := r.MultipartReader() | |
if err != nil { | |
http.Error(w, err.Error(), http.StatusInternalServerError) |
This file contains hidden or 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
'use strict' | |
import babelify from 'babelify' | |
import browserify from 'browserify' | |
import path from 'path' | |
import buffer from 'vinyl-buffer' | |
import source from 'vinyl-source-stream' | |
import watchify from 'watchify' | |
import gulp from 'gulp' |
This file contains hidden or 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
[{ | |
Id: "01", | |
Name: "GROWTH", | |
Value: "121.50%", | |
Description: "{ (Sales/Receipts for current year) / (Sales / Receipts for previous year) } -1", | |
Expand: true, | |
Children: [{ | |
Id: "a01", | |
Name: "(Sales/Receipts for current year) /", | |
Value: 40170, |
This file contains hidden or 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
otherRoutes := map[string]knot.FnContent{ | |
"/": func(r *knot.WebContext) interface{} { | |
fmt.Println("-----", "asdfsdfa") | |
rURL := r.Request.URL.String() |
This file contains hidden or 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
{ | |
"content": [{ | |
"id": "1", | |
"matan": "فَاذْكُرُونِي أَذْكُرْكُمْ", | |
"translation": "Ingatlah kamu kepada-Ku niscaya Aku ingat (pula) kepadamu", | |
"reference": "QS. Al Baqarah: 152", | |
"type": "quran verse" | |
}, { | |
"id": "2", | |
"translation": "Waktu yang digunakan untuk menunggu atau antri, akan menjadi kehidupan (waktu) yang sia-sia jika tidak diisi dengan hal-hal yang bermanfaat", |
This file contains hidden or 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
// refresh chart aja | |
$('#suppliertypeChart').data('kendoChart').redraw(); | |
// reload data + refresh chart | |
$('#suppliertypeChart').data('kendoChart').dataSource.read(); | |
// refresh grid aja | |
$('#grid-processes').data('kendoGrid').refresh(); | |
// reload data + refresh grid |