This file contains hidden or 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
$('#gregbox-outer').hide(); | |
$('#gregbox-signInTab').hide(); | |
$('#gregbox-outer').siblings('div')[2].style.display = 'none'; |
This file contains hidden or 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
<!doctype html> | |
<html lang='en-US'> | |
<head> | |
<title >This is a website</title> | |
<meta charset='utf-8'> | |
<link rel='shortcut icon' href='favicon.ico' /> | |
<meta http-equiv='cleartype' content='on'> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<link rel='stylesheet' href='app.css' /> | |
</head> |
This file contains hidden or 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 script=document.createElement('script'); | |
script.setAttribute('src','http://cssrefresh.frebsite.nl/js/cssrefresh.js'); | |
var head=document.getElementsByTagName('head'); | |
head[0].appendChild(script); | |
})(); |
This file contains hidden or 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
// 2. This code loads the IFrame Player API code asynchronously. | |
var tag = document.createElement('script'); | |
tag.src = "http://www.youtube.com/player_api"; | |
var firstScriptTag = document.getElementsByTagName('script')[0]; | |
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); | |
// 3. This function creates an <iframe> (and YouTube player) | |
// after the API code downloads. | |
var player; | |
function onYouTubePlayerAPIReady() { | |
player = new YT.Player('player', { |
This file contains hidden or 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
# The remainder of this file contains misspellings from | |
# http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines | |
# plus some post-processing to fix invalid entries, remove duplicates, etc. | |
# | |
# The content is available under the | |
# "Creative Commons Attribution-ShareAlike License" | |
# http://creativecommons.org/licenses/by-sa/3.0/ | |
abandonned->abandoned |
This file contains hidden or 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
{ | |
"provider": "ddg", | |
"query": "cat pircures", | |
"type": "images", | |
"results": [ | |
{ | |
"title": "", | |
"description": "", | |
"media": { | |
"url": "gato.png", |
This file contains hidden or 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
#put the map url in a map attribute in the dom element that has this directive. | |
#it will get the location from the map url and create an iframe | |
myApp.directive 'gMap', -> | |
restrict: "EA" | |
link: (scope, element, attrs)-> | |
if attrs.map | |
re = /@(-?\d+\.?\d*,-?\d+\.?\d*),([\d]{1,2})z/gi | |
url = '' | |
attrs.map.replace re, (match, lat, z)-> | |
z = z || 10 |
This file contains hidden or 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
//here view code, mostly HTML with php snippets to insert variables | |
//... | |
//... | |
//block with JS code | |
<?php | |
<?php | |
Yii::app()->clientScript->registerScript('settings-script', <<<EOD | |
FB.Event.subscribe('edge.create', function(response) { | |
alert('You liked the URL: ' + response); |
This file contains hidden or 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
Bundle 'chriskempson/tomorrow-theme', {'rtp': 'vim/'} | |
Bundle "xolox/vim-misc" | |
Bundle "xolox/vim-session" | |
Bundle "vim-multiple-cursors" | |
Bundle 'groenewege/vim-less' | |
Bundle 'kchmck/vim-coffee-script' |
This file contains hidden or 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
Hey shibes! you might know by now but there was a terrible fire in Chile, that killed some people and destroyed many houses in an area that was already in not great shape. | |
http://www.usatoday.com/story/news/world/2014/04/13/forest-fire-chile-homes/7664531/ | |
We've been working a lot in Josh and letting the word out, but we're all about helping others and this is some people that need it. | |
I'm getting in touch with [Techo](http://www.techo.org/en/) they have the most experience in the country helping in these situations to find a way to send them money from here. | |
Any cent helps :) in this cases people can benefit from even the cheapest things, since water sources are hard to get to, diapers for kids, etc. |