This file contains hidden or 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
| // Suppose there is PracticeModel.Jobs defined in App_Code/ | |
| // And you want to get the type via reflection. | |
| // You need to Load App_Code assembly then use GetType() to get it. | |
| Type t = System.Reflection.Assembly.Load("App_Code").GetType("PracticeModel.Jobs"); | |
| Response.Write(t.ToString()); |
This file contains hidden or 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
| @echo off | |
| for /F %%x in ('dir /s/b *.gps.*') do ( | |
| set FILENAME=%%x | |
| findstr "TTFF" %FILENAME% | |
| ) |
This file contains hidden or 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
| // Build: | |
| // "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe" /target:exe /r:"C:\Program Files\GtkSharp\2.12\lib\gtk-sharp-2.0\gtk-sharp.dll" /r:"C:\Program Files\GtkSharp\2.12\lib\gtk-sharp-2.0\atk-sharp.dll" /r:"C:\Program Files\GtkSharp\2.12\lib\gtk-sharp-2.0\glib-sharp.dll" /r:"C:\Program Files\GtkSharp\2.12\lib\gtk-sharp-2.0\gdk-sharp.dll" GtkSharpClipboardIndicator.cs | |
| using System; | |
| using Gtk; | |
| public class MainWindow: Gtk.Window { | |
| private Gtk.Clipboard m_clipboard; | |
| private Gtk.StatusIcon m_icon; | |
| public MainWindow (): base (Gtk.WindowType.Toplevel) |
This file contains hidden or 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
| import pygtk | |
| pygtk.require ('2.0') | |
| import gtk | |
| window = gtk.Window() | |
| window.set_title("PyGTK Test Window") | |
| window.connect("destroy", gtk.main_quit) | |
| def show_clipboard( clipboard, event ): | |
| print("show_clipboard") |
This file contains hidden or 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
| import pygtk | |
| pygtk.require ('2.0') | |
| import gtk | |
| window = gtk.Window() | |
| window.set_title("PyGTK Test Window") | |
| window.connect("destroy", gtk.main_quit) | |
| window.show_all() | |
| gtk.main() |
This file contains hidden or 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 twisted.internet import protocol, reactor | |
| class HelloWorldProtocol(protocol.Protocol): | |
| def connectionMade(self): | |
| self.transport.write('Hello World!') | |
| self.transport.loseConnection() | |
| class HelloWorldFactory(protocol.ServerFactory): | |
| protocol = HelloWorldProtocol |
This file contains hidden or 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
| ' http://www.rgagnon.com/wshdetails/wsh-0018.html | |
| ' http://www.rgagnon.com/wshdetails/wsh-0002.html | |
| ' http://www.bernhard-ehlers.de/projects/OutlookSecurity.html | |
| ' Get full filepath from 1st argument | |
| Dim Full_Filename | |
| Dim Filename | |
| Set objArgs = WScript.Arguments | |
| if WScript.Arguments.Count=0 then | |
| WScript.Quit 1 |
This file contains hidden or 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
| ' http://www.rgagnon.com/wshdetails/wsh-0018.html | |
| ' http://www.rgagnon.com/wshdetails/wsh-0002.html | |
| ' http://www.bernhard-ehlers.de/projects/OutlookSecurity.html | |
| ' Get full filepath from 1st argument | |
| Dim Full_Filename | |
| Dim Filename | |
| Set objArgs = WScript.Arguments | |
| if WScript.Arguments.Count=0 then | |
| WScript.Quit 1 |
This file contains hidden or 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
| #!/usr/bin/env groovy | |
| @Grab('org.apache.pdfbox:pdfbox:1.8.8') | |
| import org.apache.pdfbox.cos.COSArray | |
| import org.apache.pdfbox.cos.COSString | |
| import org.apache.pdfbox.pdfparser.PDFStreamParser | |
| import org.apache.pdfbox.pdfwriter.ContentStreamWriter | |
| import org.apache.pdfbox.pdmodel.PDDocument | |
| import org.apache.pdfbox.pdmodel.PDPage | |
| import org.apache.pdfbox.pdmodel.common.PDStream | |
| import org.apache.pdfbox.util.PDFOperator |
This file contains hidden or 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/bash | |
| # | |
| # backup_redmine.sh | |
| # modified by [email protected] | |
| # Inspiration: https://gist.github.com/gabrielkfr/6432185 | |
| # | |
| # Distributed under terms of the MIT license. | |
| # -- VARS | |
| DAY=`date +"%Y%m%d"` |