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
void HandleSearchEntryActivated (object sender, EventArgs e) | |
{ | |
var pattern = SearchPopupSearchPattern.ParsePattern (ToolbarView.SearchText); | |
if (pattern.Pattern == null && pattern.LineNumber > 0) { | |
DestroyPopup (); | |
var doc = IdeApp.Workbench.ActiveDocument; | |
if (doc != null && doc.Editor != null) { | |
doc.Select (); | |
doc.Editor.Caret.Location = new Mono.TextEditor.DocumentLocation (pattern.LineNumber, pattern.Column > 0 ? pattern.Column : 1); | |
doc.Editor.CenterToCaret (); |
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
F# Interactive for F# 3.1 (Open Source Edition) | |
Freely distributed under the Apache 2.0 Open Source License | |
For help type #help;; | |
> let scale1 = seq { -0.5 .. 0.1 .. 0.5 } ;; | |
val scale1 : seq<float> | |
> scale1 |> Seq.toArray ;; |
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
require 'pg' | |
unless ARGV[0] | |
puts "Pass the name of the database" | |
exit 1 | |
end | |
# Get our Postgres connection | |
conn = PGconn.open(:dbname => ARGV[0], :host => 'localhost') |
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
List<T> GetInstances<T>() | |
{ | |
return (from t in Assembly.GetExecutingAssembly().GetTypes() | |
where t.GetInterfaces().Contains(typeof (T)) && t.GetConstructor(Type.EmptyTypes) != null | |
select (T) Activator.CreateInstance(t)).ToList(); | |
} |
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
$defaultBorder: none | |
=arrow($direction, $size, $color, $border: $defaultBorder) | |
position: relative | |
border: $border | |
&:after, &:before | |
@if $direction == top | |
bottom: 100% | |
@else if $direction == right |
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
#!/bin/sh | |
while true | |
do | |
if [ -d confdir-14B---/confdir-14B--- ] | |
then | |
mv confdir-14B---/confdir-14B--- a | |
fi | |
if [[ $? -ne 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
#include <stdlib.h> | |
#include <unistd.h> | |
#include <limits.h> | |
#include <string.h> | |
#include <sys/stat.h> | |
#include <stdio.h> | |
/* Don't get link errors because mkdir is redefined to rpl_mkdir. */ | |
#undef mkdir |
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
--- a/src/win32/cairo-win32-font.c | |
+++ b/src/win32/cairo-win32-font.c | |
@@ -379,6 +379,8 @@ _win32_scaled_font_create (LOGFONTW *logfont, | |
/* don't delete the hfont if we're using the one passed in to us */ | |
f->delete_scaled_hfont = !f->scaled_hfont; | |
+ cairo_matrix_scale (font_matrix, 1.0 / device_scale, 1.0 / device_scale); | |
+ cairo_matrix_scale (ctm, device_scale, device_scale); | |
cairo_matrix_multiply (&scale, font_matrix, ctm); | |
status = _compute_transform (f, &scale); |
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
diff --git main/src/addins/MacPlatform/MacPlatform.cs main/src/addins/MacPlatform/MacPlatform.cs | |
index a55635f..b3f3b79 100644 | |
--- main/src/addins/MacPlatform/MacPlatform.cs | |
+++ main/src/addins/MacPlatform/MacPlatform.cs | |
@@ -285,14 +285,22 @@ namespace MonoDevelop.MacIntegration | |
ApplicationEvents.Reopen += delegate (object sender, ApplicationEventArgs e) { | |
if (IdeApp.Workbench != null && IdeApp.Workbench.RootWindow != null) { | |
IdeApp.Workbench.RootWindow.Deiconify (); | |
+ IdeApp.Workbench.RootWindow.Visible = true; |
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
"/Users/cody/xamarin/bockbuild/profiles/monodevelop-mac-dev/build-root/_install/lib/gtk-2.0/2.10.0/immodules/im-am-et.so" | |
"am_et" "Amharic (EZ+)" "gtk20" "/Users/cody/xamarin/bockbuild/profiles/monodevelop-mac-dev/build-root/_install/share/locale" "am" | |
"/Users/cody/xamarin/bockbuild/profiles/monodevelop-mac-dev/build-root/_install/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so" | |
"cedilla" "Cedilla" "gtk20" "/Users/cody/xamarin/bockbuild/profiles/monodevelop-mac-dev/build-root/_install/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa" | |
"/Users/cody/xamarin/bockbuild/profiles/monodevelop-mac-dev/build-root/_install/lib/gtk-2.0/2.10.0/immodules/im-cocoa.so" | |
"cocoa" "Mac OS X Cocoa" "gtk+" "" "ja:ko:zh" | |
"/Users/cody/xamarin/bockbuild/profiles/monodevelop-mac-dev/build-root/_install/lib/gtk-2.0/2.10.0/immodules/im-cyrillic-translit.so" |
OlderNewer