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 <sys/socket.h> | |
#include <sys/types.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
#include <netdb.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <iostream> | |
#include <stdarg.h> | |
#include <stdio.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
// Example program | |
#include <iostream> | |
#include <string> | |
using namespace std; | |
class Inimene { | |
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
# Code repository: https://github.com/mxrguspxrt/ammado | |
# GEM: https://rubygems.org/gems/ammado | |
# Documentation: http://www.rubydoc.info/gems/ammado/1.0.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
Show hidden characters
{ | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", | |
"*.tga", | |
"*.dds", |
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 App = { | |
Init: function (data) { | |
$("#devicetypes").change(App.DeviceTypeChanged); | |
$("#makes").change(App.MakeChanged); | |
$("#models").change(App.ModelChanged); | |
$(".conditions").change(App.ConditionChanged); | |
App.PopulateDefaulListValues(1, 13); |
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
// Settings in here override those in "Default/Preferences.sublime-settings", | |
// and are overridden in turn by file type specific settings. | |
{ | |
"tab_size": 2, | |
"translate_tabs_to_spaces": true, | |
"trim_trailing_white_space_on_save": true, | |
"detect_indentation": false | |
} |
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
.menu a { | |
display: block; | |
} | |
.form-control { | |
margin-bottom: 20px; | |
width: 100%; | |
} | |
.form-control .fa { |
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
// you have to have assocations defined and in view you can check isDirty | |
// it is automatically pushed to your assocation (in our case order) | |
actions: { | |
addOrderProduct: function() { | |
var order = this.get("controllers.order.model"); | |
var orderProduct = this.store.createRecord("orderProduct", {order: order}); | |
return orderProduct; | |
} | |
} |
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
App.HashTransform = DS.Transform.extend({ | |
deserialize: function(serialized) { | |
return serialized || {} | |
}, | |
serialize: function(deserialized) { | |
return deserialized || {} | |
} | |
}); |
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 Yo = function(){} | |
Yo.Application = function(){ | |
this.Router = null; | |
this.Controllers = {}; | |
this.Views = {}; | |
this.Repositories = {}; | |
this.Models = {}; | |
} |
NewerOlder