I hereby claim:
- I am baoanhng on github.
- I am embersglow (https://keybase.io/embersglow) on keybase.
- I have a public key ASDP1qeTaOJl1dK4tjlT_D4jQHdRcxOCmKQd3CfQjIbLHAo
To claim this, I am signing this object:
// ==UserScript== | |
// @name Facebook video volume persistence | |
// @namespace http://tampermonkey.net/ | |
// @version 1.1 | |
// @description Maintains set volume of videos on play of videos on Facebook. | |
// @include https://facebook.com/* | |
// @include https://www.facebook.com/* | |
// @grant GM_setValue | |
// @grant GM_getValue | |
// ==/UserScript== |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import React, { PropTypes, Component } from 'react' | |
import { | |
Animated, | |
ScrollView, | |
Text, | |
View, | |
} from 'react-native' | |
import EStyleSheet from 'react-native-extended-stylesheet' | |
const styles = EStyleSheet.create({ |
// ==UserScript== | |
// @name New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://ln.hako.re/thao-luan/* | |
// @grant GM_addStyle | |
// ==/UserScript== |
😂 |
public static int subStrCount(String string, String substr) { | |
int count = 0; | |
int lastIndex = 0; | |
while ( (lastIndex = string.indexOf(substr, lastIndex) + 1) > 0 ) { | |
count++; | |
} | |
return count; | |
} |