transpile es6 into es5 using babel cli.
first install required packages globally.
npm install -g @babel/core @babel/node @babel/preset-env @babel/cli
then use command below to perform transpilation.
/* benchmark_adler32.cc -- benchmark adler32 variants | |
* Copyright (C) 2020 Nathan Moinvaziri | |
* For conditions of distribution and use, see copyright notice in zlib.h | |
*/ | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <assert.h> |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <benchmark/benchmark.h> | |
#include "zbuild.h" | |
#include "zutil.h" | |
extern "C" void cpu_check_features(); |
transpile es6 into es5 using babel cli.
first install required packages globally.
npm install -g @babel/core @babel/node @babel/preset-env @babel/cli
then use command below to perform transpilation.
// | |
// Author: Jonathan Blow | |
// Version: 1 | |
// Date: 31 August, 2018 | |
// | |
// This code is released under the MIT license, which you can find at | |
// | |
// https://opensource.org/licenses/MIT | |
// | |
// |
git branch -r | Select-String -Pattern "->" -NotMatch | Select-String -pattern "^ origin/" | foreach { $_ -replace '^ origin/', '' } | Foreach { git checkout $_ } |
add_filter('upload_dir', 'cdn_upload_url'); | |
function cdn_upload_url($args) | |
{ | |
if (!is_admin()) { | |
$args['baseurl'] = 'https://your-awesome-cdn.net/wp-content/uploads'; | |
} | |
return $args; | |
} |
<?php | |
/** | |
* The plugin bootstrap file | |
* | |
* This file is read by WordPress to generate the plugin information in the plugin | |
* admin area. This file also includes all of the dependencies used by the plugin, | |
* registers the activation and deactivation functions, and defines a function | |
* that starts the plugin. | |
* | |
* @link http://example.com |
#!/usr/bin/env python | |
""" Script to scrape images from a flickr account. | |
Author: Ralph Bean <[email protected]> | |
""" | |
import ConfigParser | |
import urllib | |
import requests |
Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007
jQuery.extend = jQuery.fn.extend = function() { | |
var options, name, src, copy, copyIsArray, clone, | |
target = arguments[0] || {}, | |
i = 1, | |
length = arguments.length, | |
deep = false; | |
// Handle a deep copy situation | |
if ( typeof target === "boolean" ) { | |
deep = target; |