This file contains 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
$ cp -a /source/. /dest/ | |
$ rsync -r source/* destination | |
$ tput cols | |
$ tput lines | |
$ echo -e "\na\na" | grep --count ^ | |
$ echo -e "\na\na" | wc -l |
This file contains 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
atom = change set | |
--- | |
states = (fs) (staged) (stashed) | |
(lntb) (ltb) (rtb) | |
(rb) | |
--- | |
states complex (fs, staged), ... | |
--- | |
This file contains 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
# Travis CI configuration file. | |
# @link https://travis-ci.org/ | |
# For use with the Twenty Seventeen WordPress theme | |
# @link https://github.com/WordPress/twentyseventeen/ | |
# Declare project language and PHP versions to test against. | |
# @link http://about.travis-ci.org/docs/user/languages/php/ | |
language: php |
This file contains 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
Welcome to RegExr v2.1 by gskinner.com, proudly hosted by Media Temple! | |
Edit the Expression & Text to see matches. Roll over matches | |
or th | |
Σὲ γνωρίζω ἀπὸ τὴν κόψη τοῦ σπαθιοῦ τὴν τρομερή, σὲ γνωρίζω ἀπὸ τὴν ὄψη | |
ποὺ μὲ βία μετράε ι τὴ γῆ.e expression for details. Undo mistakes with ctrl-z. | |
Save Favoritese in the Library, or watch the video Tutorial. | |
This file contains 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 ReactDOM from "react-dom"; | |
class Text extends React.Component{ | |
constructor(props){ | |
super(props); | |
} | |
render() { |
This file contains 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 ReactDOM from "react-dom"; | |
class Footer extends React.Component{ | |
constructor(props){ | |
super(props); | |
this.state={ time: 1 } | |
//this.updater = this.updater.bind(this); | |
this.handleClick = this.handleClick.bind(this); |
This file contains 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 | |
// change this this to strip old slugs if needed: | |
//update wp_posts set post_name = '' where guid like '%.asp' | |
set_time_limit(20000); | |
/** Loads the WordPress Environment and Template, allowing wp functions like the_title() */ | |
define('WP_USE_THEMES', false); | |
require('./wp-blog-header.php'); | |
function bleach($which) |
This file contains 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
$con = file_get_contents('https://pixabay.com/get/e833b2062df6093ed95c4518b74f4791e27ee4d004b0154696f5c070a4eeb2_640.jpg'); | |
if(strlen($con)>0){ | |
echo "hurray, we can get " . strlen($con) . " bytes from https://pixabay.com/get/e833b2062df6093ed95c4518b74f4791e27ee4d004b0154696f5c070a4eeb2_640.jpg"; | |
}else{ | |
echo "file_get_contents() PHP not working, we can get 0 (read:zero) bytes from https://pixabay.com/get/e833b2062df6093ed95c4518b74f4791e27ee4d004b0154696f5c070a4eeb2_640.jpg. This means we cannot read files"; | |
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
class Ralamb(Optimizer): | |
def __init__(self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-8, weight_decay=0): | |
defaults = dict(lr=lr, betas=betas, eps=eps, weight_decay=weight_decay) | |
self.buffer = [[None, None, None] for ind in range(10)] | |
super(Ralamb, self).__init__(params, defaults) | |
def __setstate__(self, state): | |
super(Ralamb, self).__setstate__(state) |
OlderNewer