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
$(document).ready(function(){ | |
var prevViewCount = 0; | |
var isFirst = 1; | |
var url = window.location.href; | |
if(url.indexOf("/questions/") > -1){ | |
console.log("Question found"); | |
setInterval(function(){ | |
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
$('div.EventHeader').each(function(i, heading) { | |
var headingData = heading.innerHTML; | |
console.log("Heading is "+headingData); | |
var hasTopContent = headingData.indexOf("Top Content on Quora")!=-1; | |
if(hasTopContent){ | |
$(heading).closest(".pagedlist_item").css('opacity','0.2'); | |
} | |
console.log("Has top content = "+hasTopContent); | |
}); |
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 lab; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Map; |
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
[PHP] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
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 React from 'react'; | |
import { StyleSheet, Text, View } from 'react-native'; | |
export default class App extends React.Component { | |
getGreenText = () => { | |
return (<ColorText text="Default text" color="green"/>); | |
} |
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 React from 'react'; | |
import { StyleSheet, Text, View } from 'react-native'; | |
export default class App extends React.Component { | |
getGreenText = () => { | |
return (<ColorText text="Default text" color="green"/>); | |
} |
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
/* | |
* | |
* Created by Stone | |
* Email: [email protected] | |
* Date: 2017/12/2 | |
* | |
*/ | |
import React from 'react'; | |
import {LargeList} from 'react-native-largelist'; |
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
public class SplashActivityViewModel extends BaseViewModel<SplashActivityNavigator> { | |
private static final int SPLASH_DURATION_IN_MILLIS = 1500; | |
public SplashActivityViewModel(@NonNull Application application, SplashActivityNavigator navigator) { | |
super(application, navigator); | |
} | |
void startWorking() { |
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
public class SplashActivity extends BaseAppCompatActivity implements SplashActivityNavigator { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_splash); | |
final SplashActivityViewModel viewModel = ViewModelProviders | |
.of(this, |
OlderNewer