Clear git credentials cache:
cd .git-credential-cache/
rm -rf .git-credential-cache
cd .git-credential-cache/
rm -rf .git-credential-cache
:locals
option if you're calling render from a controller. When calling render from a view, you would simply do this:= render 'meeting_info', :info => @info
Except when it comes to figuring out how much work it's going to take. In that case, without having done it before, all bets are off.This gives us another reason for doing those side-projects that never seem to take off. If we work on a side-project, then, when we encounter a similar problem at our day-job, we will be better positioned to give an estimate about the work. And for sure, we would be on that team that is going to do the project. So, this is how, you slide into the projects you want to work on. Hmm.. hopefully, I will act on this realization unlike all the previous instances of enlightenment..
FunScript is a lightweight F# library that lets you rapidly develop single-page applications.F# Data Library - http://fsharp.github.io/FSharp.Data/
$('input:radio[name=rblist"]').each(function(){
if ($(this).is(':checked')) {
rb_value = $(this).val();
console.log("Selected rb value = " + rb_value);
}
});
some_int = 5
some_int.to_s.rjust(2, '0') # => '05'
some_int.to_s.rjust(5, '0') # => '00005'
2) It’s hard to make long term investments when Microsoft’s ever revolving door of new technologies continuously makes previous codebases obsolete. That climate makes both businesses and developers afraid to invest resources in potentially defunct technologies. Remember when WinForms was replaced by WPF? Only to be replaced by Silverlight? Then by Windows Phone apps? Which were replaced by Universal apps? Or what about how Web Services were replaced by WCF only to be replaced by Web API?And here is the reddit thread (where most people disagree with the article):
Excerpt:
Teaching computer science as a way of arranging reality rather than a way of arranging syntax or data structures—what's more appropriately known as programming or even coding—is among the arguments made by Thomas J. Cortina, a computer science professor at Carnegie Mellon, in a recent issue of ACM Communications. His general point, which is only sketched here, is that we should be aggressively advancing programs like CS Unplugged, which is a kid-focused curriculum of sorts developed by a group at the University of Caterbury in New Zealand, with a stated goal being the teaching of computational principles rather than programming and technical details. It's a great idea.
By being physically part of the solution to a problem as it is being solved, kids learn from observations and experiences.
Activity examples range from teaching data compression via rhymes, graph theory via mud, finite state automata via pirates, and so on. It's surprisingly deep given the target audience (though maybe algebra and trig would seem that way too if we weren't so used to it).
What’s next?
We’re more committed than ever to making sure that you can leverage your work to reach more customers, regardless of where they are, what device type they’re on, or what operating system they’re running. The best way to start preparing for Windows 10 is to start building universal Windows apps today for Windows 8.1.Here are some great resources to get started:Official Documentation
- Building universal Windows apps for all Windows devices
- Universal Windows app samples
- Developing Universal Windows Apps with HTML and JavaScript Jumpstart. Comprehensive 12 part video training covering how to build universal Windows apps using HTML & WinJS.
Comprehensive Online Training
- Developing Universal Windows Apps (C#/XAML) Jumpstart. On demand training providing real world guidance to build universal Windows apps with C# and XAML.
- If you are currently a Windows Phone Silverlight developer, there’s never been a better time to investigate moving your development over to Windows XAML, which provides the ability to deliver universal Windows apps. We recently released a comprehensive set of materials detailing how. Check them out here.
Note that some browsers treat <button> element ashttp://www.w3schools.com/tags/tag_button.asptype="submit"
implicitly while others (such as Internet Explorer) do not. To ensure that markup works consistently across all browsers and guarantee that it is possible to consistently select buttons that will submit a form, always specify atype
property.
If you use the <button> element in an HTML form, different browsers may submit different values. Use <input> to create buttons in an HTML form.
>> [1,2,3,4,5,6,7].detect { |x| x.between?(3,4) }
=> 3
Returns 3
because that is the first item in the list that returns TRUE for the expression x.between?(3,4)
.detect
stops iterating after the condition returns true for the first time. select
will iterate until the end of the input list is reached and returns all of the items where the block returned true.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| use strict; var module = ( function () { // This cannot be seen outside of the module, so it will not create namespace function aPrivateFunction(z) { return Math.sqrt(z); } // Freezing and sealing are two ways to prevent accidental mutation of the // module after creation. return Object.freeze({ // These are accessible as module.anExportedFunction after the definition anExportedFunction: function (x, y) { return x + aPrivateFunction(y); }, anotherExportedFunction: function (x) { return 2 * x; } }); })(); |
1
2
3
4
5
6
7
8
9
10
| use strict; // Use function to create a local scope and persistent environment ( function () { function aPrivateFunction(z) { return Math.sqrt(z); } // Mutate the global environment this .anExportedFunction = function (x, y) { return x + aPrivateFunction(y); }; this .anotherExportedFunction = function (x) { return 2 * x; }; })(); |