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
sudo sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list | |
sudo apt-get update | |
sudo apt-get install build-essential autoconf libtool git-core | |
sudo apt-get build-dep imagemagick libmagickcore-dev libde265 libheif | |
cd /usr/src/ | |
sudo git clone https://github.com/strukturag/libde265.git | |
sudo git clone https://github.com/strukturag/libheif.git | |
cd libde265/ | |
sudo ./autogen.sh | |
sudo ./configure |
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
http { | |
... | |
client_max_body_size 100M; | |
} |
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
import 'package:flutter/material.dart'; | |
import 'package:flutter_swiper/flutter_swiper.dart'; | |
import 'package:flutter_page_indicator/flutter_page_indicator.dart'; | |
class SwiperPage extends StatefulWidget { | |
@override | |
SwiperPageState createState() { | |
return SwiperPageState(); | |
} | |
} |
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
import socket | |
import threading | |
import SocketServer | |
import time | |
from datetime import datetime | |
import sys | |
import redis | |
import logging | |
import pymongo |
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
var fs = require("fs"), | |
http = require("http"), | |
url = require("url"), | |
Browser = require('nodecast-js'), | |
MediaRendererClient = require('upnp-mediarenderer-client'), | |
local_address = require('network-address'); | |
var settings = { | |
localIP: local_address(), | |
localPort: 12345 |
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
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $1 | |
apt-get update |
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
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-key update | |
sudo apt-get install php7.0-fpm -y --force-yes |
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
{ | |
"resultcode":"200", | |
"reason":"成功的返回", | |
"result":{ | |
"BJ":{ | |
"province":"北京", | |
"province_code":"BJ", | |
"citys":[ | |
{ | |
"city_name":"北京", |
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
# install xcode | |
xcode-select --install | |
# install homebrew http://brew.sh/ | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew update | |
brew install coreutils | |
brew install findutils | |
# install git | |
brew install git | |
brew install caskroom/cask/brew-cask |
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" | |
"net/http" | |
"strconv" | |
) | |
func main() { | |
fmt.Println("Hello world") |