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
(Backtrace restricted to imported tasks) | |
cap aborted! | |
SSHKit::Runner::ExecuteError: Exception while executing as deploy@192.168.1.112: rake exit status: 1 | |
rake stdout: == 20150817191541 CreateBookStoreBooks: migrating ============================= | |
-- create_table(:book_store_books) | |
rake stderr: rake aborted! | |
StandardError: An error has occurred, this and all later migrations canceled: | |
PG::UndefinedTable: ERROR: relation "authors" does not exist | |
: ALTER TABLE "book_store_books" ADD CONSTRAINT "fk_rails_52f80cb3c5" |
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
puts 'Converting FLV files' | |
basedir = '.' | |
Dir.glob("*.mp4") do |my_text_file| | |
puts ' --> converting: ' + my_text_file | |
puts "ffmpeg -i #{my_text_file.gsub(/ /, '\ ')} -ss 00:00:00.0 -c copy -t 00:00:10.0 new.#{my_text_file.gsub(/ /, '\ ')}" | |
`ffmpeg -i #{my_text_file.gsub(/ /, '\ ')} -ss 00:00:00.0 -c copy -t 00:00:10.0 new.#{my_text_file.gsub(/ /, '\ ')}` | |
end |
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
// | |
// CRC8.m | |
// | |
// Created by Chris Desch on 2/6/12. | |
// Translation from http://avrhelp.mcselec.com/index.html?crc8.htm | |
- (int)crc8Checksum:(NSString*)dataFrame{ | |
char j; | |
int crc8 = 0; |
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
// Create plot and increase size for | |
CPTScatterPlot *dataSourceLinePlot = [[CPTScatterPlot alloc] init]; | |
dataSourceLinePlot.plotSpace = plotSpace; | |
dataSourceLinePlot.identifier = colorName; | |
dataSourceLinePlot.plotSymbolMarginForHitDetection = 10.0f; |
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
//Deprecating an Item with a define | |
#define DEPRECATED __attribute__ ((deprecated)) |
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
cjs-MacBook-Pro:github cj$ cat cjs-MacBook-Pro:github cj$ brew install homebrew-alt/avr/avr-libc.rb | |
cat: cjs-MacBook-Pro:github: No such file or directory | |
cat: cj$: No such file or directory | |
cat: brew: No such file or directory | |
cat: install: No such file or directory | |
require 'formula' | |
def relative(name) | |
return name if name.kind_of? Formula | |
File.join(File.split(__FILE__)[0], name) + '.rb' |
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
#include <avr/io.h> | |
#include <avr/interrupt.h> | |
#define F_CPU 8000000UL | |
#include <util/delay.h> | |
#include <stdlib.h> | |
#include "ds18b20.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
$().ready(function(){ | |
// Instant Search | |
$('#q').keyup(function(){ | |
$('.search_item').each(function(){ | |
var re = new RegExp($('#q').val(), 'i') | |
if($(this).children('.search_text')[0].innerHTML.match(re)){ | |
$(this).show(); | |
}else{ | |
$(this).hide(); | |
}; |
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
from django.db import models | |
from django.contrib.auth import User | |
from mycompany.models import Client | |
from userprofiles.models import Profile | |
class External(Profile): | |
#External-specific models | |
client = models.ForeignKey(Client) | |
def __unicode__(self): |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>protocols</key> | |
<array> | |
<string>scp</string> | |
</array> | |
<key>styles</key> | |
<array> |