Install the weinre module from npm:
$ sudo npm -g install weinre
In your index.html add the following line before closing the head section:
<script src="http://your-local-ip:8081/target/target-script-min.js#anonymous"></script>
DELETE FROM someTable | |
USING someTable, someTable as virtualTable | |
WHERE (NOT someTable.id = virtualTable.id) | |
AND (someTable.name = virtualTable.name) |
<?php | |
function getYoutubeLink($title) | |
{ | |
@$videoName = ereg_replace('[[:space:]]+', ' ', trim($videoName)); | |
$videoName = urlencode($videoName); | |
// generate feed URL | |
$feedURL = "http://gdata.youtube.com/feeds/api/videos?vq={$videoName}"; |
<?php | |
// Create the stream context | |
$context = stream_context_create(array( | |
'http' => array( | |
'timeout' => 3 // Timeout in seconds | |
) | |
)); | |
// Fetch the URL's contents |
git rm -r --cached node_modules | |
git commit -m 'Remove the now ignored directory node_modules' | |
git push origin master |
tu biega |
var o = '{ "user": "tu vieja", "posts": [ { "title": "title 1", "contents": "..." }, { "title": "title 2", "contents": "..." } ] }'; | |
var fetchShit = function() { | |
var def = $.Deferred(); | |
setTimeout(function() { | |
def.resolve(o); | |
}, 2000); | |
return def.promise(); |
Install the weinre module from npm:
$ sudo npm -g install weinre
In your index.html add the following line before closing the head section:
<script src="http://your-local-ip:8081/target/target-script-min.js#anonymous"></script>
" Use Vim settings, rather then Vi settings (much better!). | |
" This must be first, because it changes other options as a side effect. | |
set nocompatible | |
" TODO: this may not be in the correct place. It is intended to allow overriding <Leader>. | |
" source ~/.vimrc.before if it exists. | |
if filereadable(expand("~/.vimrc.before")) | |
source ~/.vimrc.before | |
endif |
Select quotes, brackets -> | |
ctrl + shfit + space | |
Switch between tabs -> | |
ctrl + <1..2..3..?> | |
Move current tab to panel: | |
ctrl + shift + <1..2..3..?> |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<!-- NAVBAR | |
================================================== --> | |
<body> |