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
// | |
// ViewController.m | |
// UIScrollViewAutoLayout | |
// | |
// Created by Bart Vandendriessche on 11/10/14. | |
// Copyright (c) 2014 Bart Vandendriessche. Copy freely and of your own will. | |
// | |
#import "ViewController.h" |
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
{ | |
"name": "Mantle", | |
"version": "2.0", | |
"summary": "Model framework for Cocoa and Cocoa Touch.", | |
"homepage": "https://github.com/Mantle/Mantle", | |
"license": "MIT", | |
"authors": { | |
"GitHub": "support@github.com" | |
}, | |
"source": { |
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
Loading 00debian-vars...done | |
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)... | |
Skipping dictionaries-common setup for emacs-snapshot | |
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done | |
Loading /etc/emacs/site-start.d/50git-core.el (source)...done | |
Loading /etc/emacs/site-start.d/50psvn.el (source)...done | |
Loading /home/bart/.emacs.d/elpa-to-submit/nxhtml/autostart.el (source)... | |
Nxml/Nxhtml Autostart.el loading ... | |
Loading /home/bart/.emacs.d/elpa-to-submit/nxhtml/nxhtml-loaddefs.el (source)...done | |
Loading /home/bart/.emacs.d/elpa-to-submit/nxhtml/etc/schema/schema-path-patch.el (source)...done |
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 orange_form_music_node_form_alter(&$form, &$form_state) { | |
$form['title']['#validate'] = array('_check_title_for_bad_words'); | |
$form['body']['#validate'] = array('_check_body_for_bad_words'); | |
} |
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
<VirtualHost xtreme.localhost.int.nascom.be> | |
ServerAdmin bart.vandendriessche@nascom.be | |
DocumentRoot /var/www/orange | |
ServerName xtreme.localhost.int.nascom.be | |
ErrorLog /var/www/orange/error.log | |
TransferLog /var/www/orange/access.log | |
</VirtualHost> |
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
<script src="http://cdn.gigya.com/JS/gigya.js?services=socialize" type="text/javascript"></script> | |
<script type="text/javascript" src="/sites/all/modules/gigya/gigya.js?8"></script> | |
<script type="text/javascript" src="/sites/all/modules/gigya/gigya.behaviors.js?8"></script> |
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
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="OrangeVideoPlayer" width="392" height="243" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"> <param name="movie" value="http://xtreme.localhost.int.nascom.be/swf/OrangeVideoPlayer.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#000000" /> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="true" /> <param name="wmode" value="opaque" /> | |
<embed src="http://xtreme.localhost.int.nascom.be/swf/OrangeVideoPlayer.swf" quality="high" bgcolor="#000000" | |
width="392" height="243" name="OrangeVideoPlayer" align="middle" | |
play="true" | |
loop="false" | |
quality="high" | |
allowScriptAccess="sameDomain" | |
type="application/x-shockwave-flash" | |
pluginspage="http://www.adobe.com/go/getflashplayer" |
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
start transaction; | |
-- step 1, log the deleted status | |
insert into tb_reports_statuslogs(user_id, report_id, token, reference_code, status, created) | |
select r.user_id, r.id, r.token, r.reference_code, 'deleted', now() | |
from tb_reports r | |
where DATE_SUB(CURDATE(), INTERVAL 90 DAY) > r.created; | |
-- step 2, delete all related drug entries | |
delete d from tb_reports_drugs d | |
inner join tb_reports r on r.id = d.report_id | |
where DATE_SUB(CURDATE(), INTERVAL 90 DAY) > r.created; |
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
Button b = (Button) findViewById(R.id.button); | |
b.setOnClickListener(new View.OnClickListener() { | |
public void onClick(View view) { | |
// do stuff here | |
} | |
}); |
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
require 'rubygems' | |
require 'nokogiri' | |
require 'open-uri' | |
# script that will go over the railscasts website and create a list of | |
# all available videos. (can then be used to download using wget or | |
# something) | |
def has_downloads?(doc) | |
doc.css(".content").each do |content| |
OlderNewer