Skip to content

Instantly share code, notes, and snippets.

var webpack = require('webpack');
var config = require('./webpack.config');
var configs = [
config({
entry: {
head: ['app/assets/js/head.js')],
},
outputFile: '[name].js',
chunkFile: '[name].js',
Running "wordpress-sync" task
Edited category ajax.
<--- Last few GCs --->
10754 ms: Scavenge 1408.1 (1457.5) -> 1408.1 (1457.5) MB, 10.4 / 0 ms (+ 1.6 ms in 1 steps since last GC) [allocation failure] [incremental marking delaying mark-sweep].
11488 ms: Mark-sweep 1408.1 (1457.5) -> 1407.9 (1457.5) MB, 734.3 / 0 ms (+ 2.3 ms in 2 steps since start of marking, biggest step 1.6 ms) [last resort gc].
12222 ms: Mark-sweep 1407.9 (1457.5) -> 1407.8 (1457.5) MB, 734.1 / 0 ms [last resort gc].
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
.list {
display: flex;
flex-wrap: wrap;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<form action="?">
<div class="user">
<input id="user" name="user" type="text" placeholder="user">
@kswedberg
kswedberg / keybase.md
Created September 18, 2014 14:17
keybase.md

Keybase proof

I hereby claim:

  • I am kswedberg on github.
  • I am kswedberg (https://keybase.io/kswedberg) on keybase.
  • I have a public key whose fingerprint is 64B4 2356 982D E1E2 08E6 3B42 4B60 CD1D 5DFD 27DC

To claim this, I am signing this object:

Old

Plugins that need to use a selector should have the caller pass in the selector as part of the plugin's arguments during initialization.

New

Plugins that need to use a selector string within their plugin can require it as a parameter of the method. For example, a "foo" plugin could be written as $.fn.foo = function( selector, options ) { /* plugin code goes here */ }, and the person using the plugin would write $( "div.bar" ).foo( "div.bar", {dog: "bark"} ) with the "div.bar" selector repeated as the first argument of .foo().

<category name="Deprecated" slug="deprecated">
<desc/>
<category name="Deprecated 1.8" slug="1.8">
<desc><![CDATA[All the aspects of the API that were deprecated in the corresponding version of jQuery.
<p>For more information, see the Release Notes/Changelog at <a href="http://blog.jquery.com/2012/08/09/jquery-1-8-released/">http://blog.jquery.com/2012/08/09/jquery-1-8-released//</a></p>
]]></desc>
</category>
</category>
@kswedberg
kswedberg / cipreq.bash
Created December 2, 2012 18:41
commit pull request
cipreq() {
if [ -z "$1" ]
then
echo `git log -1 --no-merges --pretty=format:'git commit -a --author="'"%an <%aE>"'" --message="'"%s %b"'"'`
return 1
fi
AUTHOR=$1
@kswedberg
kswedberg / dabblet.css
Created November 6, 2012 14:17
LjQ buttons
/**
* LjQ buttons
*/
body {background-color: #f4f3eb;}
button {
position: relative;
color: #fff;
text-shadow: 0 1px 0 #555;
padding: 4px 8px;
@kswedberg
kswedberg / cipr.sh
Created October 16, 2012 18:21
alias for git commit line merging head -1
alias cipr="git log -1 --no-merge --pretty=format:'git commit -a --author="'"%an <%aE>" --message="%s %b"'"'"