Skip to content

Instantly share code, notes, and snippets.

View hilukasz's full-sized avatar

Łukasz Wieczorek hilukasz

View GitHub Profile
<div class="checkbox">
<label for="Arthritis_Grand_Parent">
<input type="checkbox" name="Arthritis_Grand_Parent" id="Arthritis_Grand_Parent" value="X" />
<span class="hide">Arthritis Grand Parent</span>
</label>
<label>
<input type="checkbox" name="Arthritis_Parent" id="Arthritis_Parent" value="X" />
<span class="hide">Arthritis Parent</span>
</label>
<label for="Arthritis_Sibling">
$('.questionFive').click(function(){
$.post("../mail.php", preSubmit())
});
// this returns a string
function preSubmit(){
var optionTexts = [];
$("section").each(function(){
var h2 = $(this).find("h2").text();
optionTexts.push(h2)
$(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);
@hilukasz
hilukasz / removeEmptyTextBoxes.jsx
Last active January 19, 2022 10:50
delete empty text boxes in illustrator
// Written By Łukasz Wieczorek - hellowoo.com
// you can destribute this freely via creative commons(http://creativecommons.org/licenses/by-sa/3.0/)
// but leave this message in tact, or give credit to original script.
var numberOfEmptyTextBoxes = 0;
var layersWithNoText = new Array();
if ( app.documents.length > 0 ) {
for ( i = 0; i < app.activeDocument.textFrames.length; i++ ) {
text = app.activeDocument.textFrames[i].textRange;
numWords = app.activeDocument.textFrames[i].words.length;
#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);
}