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
@font-face | |
font-family: "Campton-Black" | |
src: url('../resources/fonts/Campton-Black.ttf') | |
@font-face | |
font-family: "Campton-Book" | |
src: url('../resources/fonts/Campton-Medium.ttf') | |
@font-face | |
font-family: "Campton-SemiBold" | |
src: url('../resources/fonts/Campton-SemiBold.ttf') | |
@font-face |
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
var db = require('../db').db | |
db.run("CREATE TABLE IF NOT EXISTS students (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, super_student TEXT, facultee TEXT)"); | |
var newStudent = function(data){ | |
db.run("INSERT INTO students (name, super_student, facultee) VALUES ('"+ data.name + "', '" + data.super_student + "', '" + data.facultee + "')"); | |
} | |
var allStudents = function(c){ | |
db.all("SELECT rowid AS id, * FROM students", function(err, rows) { | |
c(rows); |
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
var db = require('../db').db | |
db.run("CREATE TABLE IF NOT EXISTS dorns (id INTEGER PRIMARY KEY AUTOINCREMENT, dorn TEXT, facultee TEXT, places INTEGER)"); | |
var newJob = function(data){ | |
db.run("INSERT INTO dorns (dorn, facultee, places) VALUES ('"+ data.company + "', '" + data.job + "', " + data.salary + ")"); | |
} | |
var allJobs = function(c){ | |
db.all("SELECT rowid AS id, * FROM dorns", function(err, rows) { | |
c(rows); |
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(d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) return; | |
js = d.createElement(s); js.id = id; | |
js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.4&appId=1514760222082287"; | |
fjs.parentNode.insertBefore(js, fjs); | |
}(document, 'script', 'facebook-jssdk')); | |
window.twttr = (function(d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0], | |
t = window.twttr || {}; |
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
WattAttack.module("Entities", function(Entities, WattAttack, Backbone, Marionette, $, _){ | |
var FileProtocol = { | |
deferedSendFiles: function(fileCollection){ | |
console.log('uploading files here' + fileCollection.map(function(file){ | |
return file.get('name'); | |
}).join(',')); | |
var req = []; | |
for (var index = 0; index < fileCollection.models.length; index++){ |
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
var a = {}; | |
function emitter(obj) { | |
obj.emit = function(en, data){ | |
if(this[en]){ | |
for (var i = 0; i < this[en].length; i++){ | |
this[en][i][0].apply(this, [data]); | |
if (this[en][i][1]){ | |
this[en].splice(i, 1); | |
i--; |
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
laps: [{ | |
averageAltitude: null | |
averageCadence: 73 | |
averageHeartRate: 100 | |
averagePower: 102 | |
averageSpeed: 7.221 | |
averageTemperature: null | |
maxAltitude: null | |
maxCadence: 96 | |
maxHeartRate: 130 |
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
while (1) | |
{ | |
if(PINC.0==0){ | |
lcd_init(16); | |
lcd_gotoxy(0,0); | |
i = 0; | |
if(mode==0){ | |
lcd_putsf("set temp"); | |
} else { | |
lcd_putsf("set time"); |
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
var | |
myString : String; | |
mem1: char; | |
mem2: char; | |
l: int; | |
begin | |
myString := 'Hey! How are you?'; | |
writeln(myString); | |
l := length(myString); | |
mem1 := myString[length-1]; |
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
if((mem_time>0)&&(mem_temp>0)){ | |
if(time_stas <= mem_time){ | |
lcd_init(16); | |
lcd_gotoxy(0,0); | |
PORTB.2=1; | |
most_sig_byte=spi(0x00); | |
delay_ms(10); | |
least_sig_byte=spi(0x00); | |
PORTB.2=0; |
NewerOlder