Skip to content

Instantly share code, notes, and snippets.

View igaozp's full-sized avatar
:shipit:
happy coding

igaozp igaozp

:shipit:
happy coding
View GitHub Profile
let Y = lambda F.
    let f_gen = lambda self. F(self(self))
    return f_gen(f_gen)
import java.io.*;
import java.util.*;

public class Solution {

    public static void main(String[] args) {
        /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
/*
  Print elements of a linked list on console 
  head pointer input could be NULL as well for empty list
  Node is defined as 
  class Node {
     int data;
     Node next;
  }
*/

####Java读取多行数据并输出

  /*
  读取并输出:
  1024
  3.1415926
  qwertyuiop
  */
  Scanner scan = new Scanner(System.in);
 int i = scan.nextInt();
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<!-- A simple bean definition -->
<bean id="..." class="...">
<!-- collaborators and configuration for this bean go here -->
sudo mkdir /usr/share/fonts/oh-my-fonts
sudo cp 存放字体的目录/*  /usr/share/fonts/oh-my-fonts
sudo chmod 644 /usr/share/fonts/oh-my-fonts/*
cd /usr/share/fonts/oh-my-fonts
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true

1 npm install --save-dev eslint-config-vue eslint-plugin-vue

2 create a file named .eslintrc in your project:

{
  "extends": "vue"
  // Your overrides...
}
  1. balel-loader config in webpack

  2. Run npm install --save-dev babel-loader babel-core babel-preset-env

module: {
  rules: [
    {
      test: /\.js$/,
 exclude: /(node_modules|bower_components)/,