Skip to content

Instantly share code, notes, and snippets.

@congjf
congjf / .Title
Last active April 2, 2023 00:57 — forked from border/mgoExample.go
Using MongoDB in golang with mgo
Using MongoDB in golang with mgo
@congjf
congjf / str_to_table.py
Created November 29, 2018 07:42
A function to convert the String object with certain row flag and column flag to the table (list) object
def str_to_table(str, row_flag, col_flag):
rows = str.split(row_flag)
table = []
for r in rows:
cells = r.split(col_flag)
table.append(cells)
return table
@congjf
congjf / GoSublime.sublime-settings
Created November 20, 2018 09:26
Configurations of the GoSublime plugin of Sublime Text 3
{
"env": {
"GOROOT": "<your_go_root_path>",
"GOPATH": "<your_go_path>",
"PATH": "$GOPATH/bin:$PATH"
},
"gscomplete_enabled": true,
"fmt_enabled": true,
"gslint_enabled": true,
@congjf
congjf / SpringBoot.md
Last active October 16, 2016 07:51
Spring Boot

Steps

  • Create a build.gradle file, like build.gradle
  • Open IDEA, and import the build.gradle created before

Gradle

The Spring Boot gradle plugin provides many convenient features:

  • It collects all the jars on the classpath and builds a single, runnable "über-jar", which makes it more convenient to execute and transport your service.
@congjf
congjf / kivy example
Last active June 15, 2016 01:11
kivy example
from kivy.app import App
from kivy.uix.widget import Widget
class PongGame(Widget):
pass
class PongApp(App):
def build(self):
@congjf
congjf / .Title
Last active January 4, 2016 15:59
JavaScript GOF
JavaScript GOF
@congjf
congjf / .Title
Last active January 3, 2016 07:49
Algorithms using Golang
Algorithms using Golang
@congjf
congjf / .Title
Last active January 2, 2016 18:49
AngularJS Using Services
AngularJS Using Services
@congjf
congjf / .Title
Last active January 1, 2016 17:39
Javascript Buildin Object/Function
Javascript Buildin Object/Function