Skip to content

Instantly share code, notes, and snippets.

View bartvandendriessche's full-sized avatar

Bart Vandendriessche bartvandendriessche

  • http://www.astrangeloop.com
  • Belgium
View GitHub Profile
//
// 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"
@bartvandendriessche
bartvandendriessche / Mantle2.0.podspec.json
Created January 29, 2015 06:56
Podspec for Mantle 2.0-development
{
"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": {
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
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');
}
<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>
<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>
<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"
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;
Button b = (Button) findViewById(R.id.button);
b.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
// do stuff here
}
});
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|