Skip to content

Instantly share code, notes, and snippets.

View jimut's full-sized avatar
👨‍💻
Grinding

Jimut Dhali jimut

👨‍💻
Grinding
View GitHub Profile
@jimut
jimut / debug.md
Last active May 18, 2016 19:03
Beautification not working on SASS after fresh install
Unsupported beautification result 'Parsing error: Please check the validity of the block starting from line #3
1 | .container 2 | z-index: 0 3*| background: #FFF 4 | padding: 10px
Gonzales PE version: 3.0.0-28 Syntax: sass'.
Unsupported beautification result 'Parsing error: Please check the validity of the block starting from line #3
1 | .container
2 | z-index: 0
3*| background: #FFF
4 | padding: 10px

After recieving the request the following code compiles it

if ($request->lang === 'C') {
    $outputGcc = shell_exec('gcc '.escapeshellarg(storage_path('app/codes/'.$codefile))
            .' -o '.escapeshellarg(storage_path('app/codes/progs/'.$exefile)).' 2>&1');
} else if ($request->lang === 'C++') {
    $outputGcc = shell_exec('g++ '.escapeshellarg(storage_path('app/codes/'.$codefile))
            .' -o '.escapeshellarg(storage_path('app/codes/progs/'.$exefile)).' 2>&1');
}
@jimut
jimut / config.json
Created August 31, 2018 21:57
Sample config for using custom FusionCharts library in FusionExport
{
"libraryDirectoryPath": "~/Desktop/fusioncharts/"
}
@jimut
jimut / multiple.json
Created April 4, 2019 08:08
Chart configurations for wealth management dashboard
[
{
"type": "usa",
"renderAt": "chart-container-map",
"width": "100%",
"height": "100%",
"dataFormat": "json",
"dataSource": {
"chart": {
"showCanvasBorder": "0",