Legend:
- ✏️ method changes
this
. - 🔒 method does not change
this
.
Array<T>.prototype.*
:
concat(...items: Array): T[]
🔒 ES3
HTML_TAG_REPLACEMENTS = { | |
'br' => "\n", | |
} | |
HTML_QUOTE_REPLACEMENTS = { | |
'quot' => '"', | |
'amp' => '&', | |
} | |
def strip_html(str, tag = HTML_TAG_REPLACEMENTS, quot = HTML_QUOTE_REPLACEMENTS) | |
str.gsub %r{ |
# Update, upgrade and install development tools: | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential git-core curl libssl-dev \ | |
libreadline6 libreadline6-dev \ | |
zlib1g zlib1g-dev \ | |
libmysqlclient-dev \ | |
libcurl4-openssl-dev \ | |
libxslt-dev libxml2-dev |
# run this as root | |
while [ 1 ]; do echo | nc -l -U /tmp/reload_nginx && /etc/init.d/nginx reload; done | |
# or as an upstart job | |
script | |
echo | nc -l -U /tmp/reload_nginx && /etc/init.d/nginx reload | |
end script | |
respawn | |
# now any process can run this or do the equivalent with sockets to trigger reload |
#!/bin/sh | |
# | |
# /etc/rc.d/init.d/supervisord | |
# | |
# Supervisor is a client/server system that | |
# allows its users to monitor and control a | |
# number of processes on UNIX-like operating | |
# systems. | |
# | |
# chkconfig: - 64 36 |
// Useful for students in need of block quotes for their paper, etc. | |
// Execute the line in your JavaScript console | |
new_window=window.open();new_window.document.body.innerHTML = $('iframe').contents().find('iframe').contents().find('body').get(1).innerHTML; | |
javascript:new_window=window.open();new_window.document.body.innerHTML = $('iframe').contents().find('iframe').contents().find('body').get(1).innerHTML; |
#!/usr/bin/ruby | |
require 'rss' | |
#this assumes you have a cookies.txt with destroyallsoftware.com cookies... later ill add a signin method.. | |
class Link | |
attr_accessor :link,:title,:date | |
def initialize(link,title,date) | |
@link = link |
function vkbeautify(){ // line 83 of vkbeautify.2.0.js | |
// change the string below to 2 spaces instead of 4: | |
this.step = ' '; // 4 spaces | |
this.shift = createShiftArr(this.step); | |
}; |
{"version":1,"resource":"file:///Users/girishp/projects/tryambake/code/development/nakshatra/src/scripts/ayanmasa.js","entries":[{"id":"vkpo.js","timestamp":1661729634292},{"id":"uGhx.js","timestamp":1661729706107},{"id":"myRH.js","timestamp":1661731472046},{"id":"KAEl.js","timestamp":1661731676002},{"id":"ux1j.js","timestamp":1661731803556},{"id":"rz3u.js","timestamp":1661731856633},{"id":"HhFw.js","timestamp":1661732882740},{"id":"EvL5.js","timestamp":1661732967666},{"id":"mr5z.js","timestamp":1661732999705},{"id":"yhuD.js","timestamp":1661733154400},{"id":"J40H.js","timestamp":1661733174258},{"id":"EwrC.js","timestamp":1661733208740},{"id":"OxJ1.js","timestamp":1661733245767},{"id":"8BSV.js","timestamp":1661733324748},{"id":"8Mvf.js","timestamp":1661733405253},{"id":"NeuX.js","timestamp":1661733416013},{"id":"bCuI.js","timestamp":1661733529128},{"id":"3W8r.js","timestamp":1661733575747},{"id":"E78j.js","timestamp":1661733590158},{"id":"z6NS.js","source":"undoRedo.source","timestamp":1661733600578},{"id":"y |