JPG:
$ brew install jpegoptim
$ find . -name "*.jpg" -exec jpegoptim -m80 -o -p --strip-all {} \;
- PNG:
$ brew install optipng
$ find . -name "*.png" -exec optipng -o7 {} \;
import React from 'react' | |
import styled from 'styled-components' | |
class ScrollingWrapper extends React.Component { | |
state = { hasScrolled: false } | |
componentDidMount() { | |
this.scrollingWrapper.addEventListener('scroll', this.onScroll) | |
} |
JPG:
$ brew install jpegoptim
$ find . -name "*.jpg" -exec jpegoptim -m80 -o -p --strip-all {} \;
- PNG:
$ brew install optipng
$ find . -name "*.png" -exec optipng -o7 {} \;
import React from 'react'; | |
import { | |
StyleSheet, | |
View, | |
TextInput, | |
AppRegistry, | |
} from 'react-native'; | |
class App extends React.Component { | |
constructor(props) { |
--- | |
format_version: 1.1.0 | |
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git | |
trigger_map: | |
- push_branch: "*" | |
workflow: tests | |
workflows: | |
_tests_setup: | |
steps: | |
- activate-ssh-key: {} |
<script type="text/javascript"> | |
(function () { | |
"use strict"; | |
// once cached, the css file is stored on the client forever unless | |
// the URL below is changed. Any change will invalidate the cache | |
var css_href = './index_files/web-fonts.css'; | |
// a simple event handler wrapper | |
function on(el, ev, callback) { | |
if (el.addEventListener) { | |
el.addEventListener(ev, callback, false); |
#!/bin/bash | |
# | |
# Wordpress Deprecated function checker | |
# | |
# Version: 0.2 | |
# | |
# Author: Michiel Roos <[email protected]> | |
# Jeff Buchbinder (https://github.com/jbuchbinder) | |
# | |
# www.php.net/manual/en/migration53.deprecated.php |
#! /bin/bash | |
## PHP 7 Initial Compile ## | |
## Some help from the various places like these. ## | |
# http://www.zimuel.it/install-php-7/ | |
# http://www.hashbangcode.com/blog/compiling-and-installing-php7-ubuntu | |
## Setup Ubuntu 15.04/15.10 ## | |
# Other dependencies for PHP 7. Add any missing ones from configure script | |
# complaints, plus some LAMP needs too. |
var request = require("request"), | |
cheerio = require("cheerio"), | |
url = "https://www.google.com/search?q=data+mining", | |
corpus = {}, | |
totalResults = 0, | |
resultsDownloaded = 0; | |
function callback () { | |
resultsDownloaded++; |