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
var commonPWD = ["password", "123456", "12345678", "1234", "qwerty", "12345", "dragon", "pussy", "baseball", "football", "letmein", | |
"monkey", "696969", "abc123", "mustang", "michael", "shadow", "master", "jennifer", "111111", "2000", "jordan", "superman", "harley", "1234567", "fuckme", "hunter", "fuckyou", "trustno1", "ranger", "buster", "thomas", "tigger", "robert", "soccer", "fuck", "batman", "test", "pass", "killer", "hockey", "george", "charlie", "andrew", "michelle", "love", "sunshine", "jessica", "asshole", "6969", "pepper", "daniel", "access", "123456789", "654321", "joshua", "maggie", "starwars", "silver", "william", "dallas", "yankees", "123123", "ashley", "666666", "hello", "amanda", "orange", "biteme", "freedom", "computer", "sexy", "thunder", "nicole", "ginger", "heather", "hammer", "summer", "corvette", "taylor", "fucker", "austin", "1111", "merlin", "matthew", "121212", "golfer", "cheese", "princess", "martin", "chelsea", "patrick", "richard", "diamond", "yellow", "bigdog", "secret", "asdfgh", |
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
const MiniCssExtractPlugin = require("mini-css-extract-plugin"); | |
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin"); | |
module.exports = { | |
optimization: { | |
minimizer: [ | |
new OptimizeCSSAssetsPlugin({}) | |
] | |
}, | |
plugins: [ | |
new MiniCssExtractPlugin({ |
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
function doubleInteger(i) { | |
// i will be an integer. Double it and return it. | |
return i*2; | |
} | |
function isNumberEven(i) { | |
// i will be an integer. Return true if it's even, and false if it isn't. | |
return i%2 === 0; | |
} |
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
[].slice.call(document.querySelectorAll(".a-span2 .value")).map(function(e){return parseFloat(e.textContent.trim().split("EUR")[1].trim().replace(",","."))}).reduce(function(e,t){return e+t}); |
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 { DEFAULT_ADAPTER } from './constants'; | |
/* | |
Creates the subscription object | |
@param component function the React component | |
@param autoUnmount boolean defaults to true, if it has to remove all subscriptions on cwunmount | |
@param adapter object the pubsub adapter | |
@return the subscription object |
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
- content_for :javascript_page do | |
:javascript | |
$(document).bind('drop', function(e) { | |
var url | |
, target = $(e.target) | |
, remote_avatar = $('#user_remote_avatar_url') | |
; | |
if (target.hasClass('dropzone')) { | |
url = $(e.originalEvent.dataTransfer.getData('text/html')).filter('img').attr('src'); | |
if (target.hasClass('attachments-drop"')) { |
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
!function(){var a=Array.prototype.slice;a.apply(document.querySelectorAll(".checkbox")).forEach(function(a){a.checked="checked"})}() |
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
var logo = document.querySelector('#logo') | |
, cb = document.querySelector('#watch-channel-brand-div'); | |
logo && (logo.src = '//bit.ly/ghD24e'); | |
cb && (cb.innerHTML = 'I h8 fucking IE'); |
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
// You know you can write this (96 bytes): | |
if ( top < 10 ){ | |
header.removeClass('scrolled'); | |
} else { | |
header.addClass('scrolled'); | |
} | |
// in this way (60 bytes)? |
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
#!/bin/sh | |
# Put this in .git/hooks/post-commit (and chmod 755) | |
CUR_BRANCH=`git rev-parse --abbrev-ref HEAD` | |
# do this awesomeness if current branch is master | |
if [ "$CUR_BRANCH" == "master" ]; then | |
echo "Smile for the camera..." | |
MSG=`git log -1 --pretty=format:%s` | |
SNAPSHOT="last_commit.jpg" |
NewerOlder