This file contains hidden or 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
use std::collections::HashSet; | |
use advent_of_code_day6::reading; | |
#[derive(Clone, Copy, Hash, PartialEq, Eq, Debug)] | |
enum HeadDirection { | |
Up, | |
Down, | |
Left, | |
Right, |
This file contains hidden or 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
use std::cmp::Ordering; | |
use advent_of_code_2024_day5::reading; | |
fn main() { | |
let input = reading::read(); | |
let mut result = 0; | |
for case in input.cases { | |
let mut sorted = case.clone(); | |
sorted.sort_by(|a, b| { |
This file contains hidden or 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 rootReducer from '../reducer/rootReducer'; | |
import { createStore, applyMiddleware } from 'redux'; | |
import { createEpicMiddleware } from 'redux-observable'; | |
import rootEpic from '../epic/rootEpic'; | |
function configureStore(default_state = {}){ | |
const epicMiddleware = createEpicMiddleware(); | |
const store = createStore( | |
rootReducer, | |
default_state, |
This file contains hidden or 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 com.billboard.demo.config; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.context.annotation.Import; | |
import springfox.documentation.builders.PathSelectors; | |
import springfox.documentation.builders.RequestHandlerSelectors; | |
import springfox.documentation.service.ApiInfo; | |
import springfox.documentation.service.Contact; | |
import springfox.documentation.spi.DocumentationType; |
This file contains hidden or 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
buildscript { | |
ext { | |
springBootVersion = '2.1.0.RELEASE' | |
} | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") | |
} |
This file contains hidden or 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
#Database Configuration | |
spring.datasource.url=jdbc:mariadb://localhost:3306/billboard | |
spring.datasource.username=root | |
spring.datasource.password= | |
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver | |
#Hibernate Configuration | |
# Show or not log for each sql query | |
spring.jpa.show-sql=true |
This file contains hidden or 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
%hook MatchChatViewController | |
- (void)requsetStartMactch { | |
[NSObject cancelPreviousPerformRequestsWithTarget:self]; | |
%orig; | |
[self performSelector:@selector(requsetStartMactch) withObject:nil afterDelay:0.30]; | |
} | |
%end |
This file contains hidden or 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://www.juhevip.cn/thread-124927-1-1.html | |
https://github.com/keystone-engine/keypatch | |
https://www.52pojie.cn/thread-675251-1-1.html | |
https://www.52pojie.cn/forum.php?mod=forumdisplay&fid=4&filter=typeid&typeid=134 | |
https://www.52pojie.cn/forum.php?mod=viewthread&tid=648089 | |
45.32.141.226 |
This file contains hidden or 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
How to Completely Remove Android Studio | |
Execute these commands from the terminal | |
rm -Rf /Applications/Android\ Studio.app | |
rm -Rf ~/Library/Preferences/AndroidStudio* | |
rm ~/Library/Preferences/com.google.android.studio.plist | |
rm -Rf ~/Library/Application\ Support/AndroidStudio* | |
rm -Rf ~/Library/Logs/AndroidStudio* |
This file contains hidden or 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
" File : .vimrc | |
" Author : Yiping Deng <[email protected]> | |
" Date : 26.05.2018 | |
" Last Modified Date: 26.05.2018 | |
" Last Modified By : Yiping Deng <[email protected]> | |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim |
NewerOlder