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
{ | |
"audiocount": 640, | |
"audiocount1": null, | |
"audioprocessing": true, | |
"autobarsrotate": true, | |
"autobarsrotatespeed": 3, | |
"autologorotate": true, | |
"autologorotatespeed": 10, | |
"background": null, | |
"backgroundcolor": "0 0 0", |
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
Sub Splitdatabycol() | |
'updateby Extendoffice | |
Dim lr As Long | |
Dim ws As Worksheet | |
Dim vcol, i As Integer | |
Dim icol As Long | |
Dim myarr As Variant | |
Dim title As String | |
Dim titlerow As Integer | |
Dim xTRg As Range |
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
'Code Created by Sumit Bansal from trumpexcel.com | |
Sub SplitEachWorksheet() | |
Dim FPath As String | |
FPath = Application.ActiveWorkbook.Path | |
Application.ScreenUpdating = False | |
Application.DisplayAlerts = False | |
For Each ws In ThisWorkbook.Sheets | |
ws.Copy | |
Application.ActiveWorkbook.SaveAs Filename:=FPath & "\" & ws.Name & ".xlsx" | |
Application.ActiveWorkbook.Close False |
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
function createFileInFolder(folderId, fileName) { | |
const folder = DriveApp.getFolderById(folderId) | |
console.log(folder.getName()) | |
const files = folder.getFilesByName(fileName) | |
if (files.hasNext()) { | |
return SpreadsheetApp.open(files.next()) | |
} | |
const file = SpreadsheetApp.create(fileName) | |
const copyFile = DriveApp.getFileById(file.getId()) | |
folder.addFile(copyFile) |
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
// Provider | |
func NewFirebaseApp() *firebase.App { | |
opt := option.WithCredentialsFile(filename) | |
app, err := firebase.NewApp(context.Background(), nil, opt) | |
if err != nil { | |
log.Fatalf("error initializing app: %v\n", err) | |
} | |
return app | |
} |
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
// Provider | |
func NewFirebaseApp() *firebase.App { | |
opt := option.WithCredentialsFile(filename) | |
app, err := firebase.NewApp(context.Background(), nil, opt) | |
if err != nil { | |
log.Fatalf("error initializing app: %v\n", err) | |
} | |
return app | |
} |
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
func main() { | |
area := ProvideShape() | |
fmt.Println(area) | |
} |
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
package main | |
import ( | |
"net/http" | |
) | |
type FieldInjection struct { | |
foo http.Server | |
bar http.Server | |
} |
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
package main | |
import "fmt" | |
type badImplCustomer struct { | |
Name string | |
Address string | |
Order int | |
OrderComplete bool | |
} |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
type CustomerInfo interface { | |
Name() string | |
Address() string |
OlderNewer