Skip to content

Instantly share code, notes, and snippets.

View hilukasz's full-sized avatar

Łukasz Wieczorek hilukasz

View GitHub Profile
$(function() {
$( ".draggable" ).sortable({
containment: "parent",
opacity: 0.6,
placeholder: "placeholder",
stop: function( event, ui) {
updateListClasses();
}
});
SyntaxError in Posts#index
Showing /Users/lukaszwieczorek/Documents/Ruby/rummageMonster/app/views/posts/index.html.haml where line #32 raised:
/Users/lukaszwieczorek/Documents/Ruby/rummageMonster/app/views/posts/index.html.haml:32: unknown regexp options - hadr
/Users/lukaszwieczorek/Documents/Ruby/rummageMonster/app/views/posts/index.html.haml:32: syntax error, unexpected $undefined
... </form>\n </header>\n <div id='main'>\n ...
... ^
/Users/lukaszwieczorek/Documents/Ruby/rummageMonster/app/views/posts/index.html.haml:32: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
...n </header>\n <div id='main'>\n <div class=...
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="1224px" height="792px" viewBox="0 0 1224 792" enable-background="new 0 0 1224 792" xml:space="preserve">
<rect x="313.433" y="180.124" fill="#FFFFFF" stroke="#000000" stroke-miterlimit="10" width="187.629" height="173.196"/>
<rect x="375.289" y="277.031" fill="#FFFFFF" stroke="#000000" stroke-miterlimit="10" width="162.887" height="178.351"/>
<rect x="492.814" y="178.062" fill="#FFFFFF" stroke="#000000" stroke-miterlimit="10" width="143.299" height="140.206"/>
</svg>
#include <CapacitiveSensor.h>
#include "Letter.h"
#include "LetterSensor.h"
#include "KeyboardPad.h"
#include <Wire.h>
const byte capSenseSend = 53;
LetterSensor lsa (Letter('a'), capSenseSend, 22, 22);
LetterSensor lsb (Letter('b'), capSenseSend, 23, 23);
#include "Arduino.h"
#IFNDEF QUICKAVERAGE_H
#DEFINE QUICKAVERAGE_H
class QuickAverage {
public:
QuickAverage();
int update(int sample);
void sampleAmount(int changeSampleTo);
#define KNOCK_BANG 1
#include <TinyDebugKnockBang.h>
#ifdef KNOCK_BANG
#define Serial Debug
#endif
#include <CapacitiveSensor.h>
// do a fade up every "x" amount of LED cycles...
// make sure it's not multiple of 3 else it will be same LED everytime
const int sensorPinInput = 0,
sensorPinOutput = 1,
ledPin = 2;
void setup()
{
pinMode(sensorPinInput, INPUT);
pinMode(sensorPinOutput, OUTPUT);
pinMode(ledPin, OUTPUT);
}
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
/** begin Visual Hero custom post types additions **/
/** initialize things, and stuff. you know? You just have to… stop asking questions **/
/******************
// Business
******************/
function my_custom_post_business() {
$labels = array(
'name' => _x( 'business', 'post type general name' ),
'singular_name' => _x( 'business', 'post type singular name' ),
'add_new' => _x( 'Add New', 'book' ),
'add_new_item' => __( 'Add New business' ),
GNU gdb 6.3.50-20050815 (Apple version gdb-1822) (Sun Aug 5 03:00:42 UTC 2012)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys000
[Switching to process 505 thread 0x0]
kill
quit