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
#------------------------------------------------------------------------------- | |
# Name: terbilang.py | |
# Purpose: | |
# | |
# Author: Rudy | |
# | |
# Created: 25/03/2019 | |
# Copyright: (c) Rudy 2019 | |
# Licence: <your licence> | |
#------------------------------------------------------------------------------- |
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
SELECT *, RANK() OVER( ORDER BY "CALMONTH" DESC) AS "RankRank" | |
FROM | |
( | |
SELECT DISTINCT "YEAR", "MONTH", "CALMONTH" | |
FROM _SYS_BI.M_TIME_DIMENSION | |
WHERE "CALMONTH" IN | |
( | |
SELECT TOP 2 DISTINCT "CALMONTH" | |
FROM _SYS_BI.M_TIME_DIMENSION | |
WHERE "CALMONTH" < ( |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"time" | |
) | |
type message struct { | |
Name 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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
// not title case variable -- not work! | |
type person struct { | |
first 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
package main | |
import ( | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"strings" | |
) | |
func main() { |
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
[^a-zA-Z0-9\\\-\ \(\)\/\"\?\,\&\n]+ |
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 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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
SELECT | |
TABLE_NAME, | |
MEMORY_SIZE_IN_TOTAL, | |
MEMORY_SIZE_IN_MAIN, | |
MEMORY_SIZE_IN_DELTA, | |
ESTIMATED_MAX_MEMORY_SIZE_IN_TOTAL, | |
RECORD_COUNT | |
FROM m_cs_tables | |
where schema_name = 'SCHEMA' | |
order by ESTIMATED_MAX_MEMORY_SIZE_IN_TOTAL desc |
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
-- HANA query to Reverse search what table are being used in a HANA Package model | |
-- Usage: change DEPENDENT_OBJECT_NAME and BASE_SCHEMA_NAME parameter accordingly | |
SELECT distinct | |
BASE_OBJECT_NAME | |
FROM "SYS"."OBJECT_DEPENDENCIES" | |
where left(DEPENDENT_OBJECT_NAME, locate(DEPENDENT_OBJECT_NAME,'::') -1) in ('HANA-PACKAGE') | |
and BASE_SCHEMA_NAME = 'SCHEMA' | |
and DEPENDENT_SCHEMA_NAME = 'PUBLIC' |
NewerOlder