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
Thanks to this Gist: https://gist.github.com/avalonalex/8125197 | |
How to use: Make sure Homebrew is installed then run `curl https://gist.githubusercontent.com/zebMcCorkle/fa4508e27f457d7b796ffd474be35d62/raw/59942466b13fe92d09b4b537cc7fcfb309c05c4a/consolas.sh | bash -` |
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
Using context 'ApplicationDbContext'. | |
Using database 'main' on server '/Users/michal/dev/Foobar.Web/Foobar.Web.db'. | |
System.EntryPointNotFoundException: sqlite3_close_v2 | |
at (wrapper managed-to-native) Microsoft.Data.Sqlite.Interop.NativeMethods:sqlite3_close_v2 (intptr) | |
at Microsoft.Data.Sqlite.Interop.Sqlite3Handle.ReleaseHandle () in <filename unknown>:line 0 | |
at System.Runtime.InteropServices.SafeHandle.DangerousReleaseInternal (Boolean dispose) in <filename unknown>:line 0 | |
at System.Runtime.InteropServices.SafeHandle.DisposeInternal () in <filename unknown>:line 0 | |
at System.Runtime.InteropServices.SafeHandle.InternalDispose () in <filename unknown>:line 0 | |
at System.Runtime.InteropServices.SafeHandle.Dispose (Boolean disposing) in <filename unknown>:line 0 | |
at System.Runtime.InteropServices.SafeHandle.Dispose () in <filename unknown>:line 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
MAIN MODULE projpsy; | |
FROM SimMod IMPORT StartSimulation, SimTime, TriggerObj; | |
FROM IOMod IMPORT ReadKey, StreamObj, ALL FileUseType; | |
FROM StatMod IMPORT TSINTEGER, SINTEGER, SREAL, RStatObj, IStatObj, ITimedStatObj; | |
FROM GrpMod IMPORT RankedObj, QueueObj, StackObj; | |
FROM RandMod IMPORT RandomObj; | |
TYPE |
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
#!/usr/bin/env ruby | |
require 'mail' | |
mail = Mail.read 'inbox/0.eml' | |
mail.parts.each do |part| | |
if part.content_type.include? 'text/plain' | |
puts 'plain part' | |
elsif part.content_type.include? 'text/html' | |
puts 'html part' |
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
#!/usr/bin/env ruby | |
require 'net/pop' | |
Net::POP3.enable_ssl | |
pop = Net::POP3.new 'pop3.server.com' | |
pop.start 'email/login', 'pass' | |
if pop.mails.empty? | |
puts "No mail." | |
else |
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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package choleskydecomposition; | |
import Jama.*; | |
/** |
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
define('MYSQL_LOCALE', 'localhost'); //Server IP | |
define('MYSQL_DB', 'databse'); //DB Name | |
define('MYSQL_USER', 'pro'); //DB Username | |
define('MYSQL_PASS', 'test'); //DB Password |
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
class CI_Model { | |
/** | |
* Constructor | |
* | |
* @access public | |
*/ | |
private $pdo = null; |
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 <REGX52.H> | |
unsigned char xdata Lewy _at_ 0xFE00; | |
unsigned char xdata Prawy _at_ 0xFD00; | |
char in, i, j; | |
char src; | |
void ISR_Serial(void) interrupt 4 | |
{ | |
if(RI == 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
#include <REGX52.H> | |
sbit BUTTON1 = P0^0; | |
sbit BUTTON2 = P0^1; | |
char turn; | |
bit state; | |
void wait(int input) | |
{ |
NewerOlder