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
/*! | |
* Bootstrap v2.2.2 | |
* | |
* Copyright 2012 Twitter, Inc | |
* Licensed under the Apache License v2.0 | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Designed and built with all the love in the world @twitter by @mdo and @fat. | |
*/article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}a:hover,a:active{outline:0}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{width:auto\9;height:auto;max-width:100%;vertical-align:middle;border:0;-ms-interpolation-mode:bicubic}#map_canvas img,.google-maps img{max-width:none}button,input,select,textarea{margin:0;font-size:100%;vertical-align:middle}button,input{*overflow:visible;line-height:normal}button::-moz-focu |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<quotes languages="tr|fr|en|he|da|id|fi|bs|es|ca|bg|pl|ta|cs|sv|simple|nl|pt|de|ru|it|lt|be|no"> | |
<quote id="0" author="Hillary Clinton" cats="Democratic Party (United States) politicians|Living people|Members of the United States Senate|People from Arkansas|People from Illinois|United States First ladies|United States Secretaries of State|United States presidential candidates, 2008|United States presidential candidates, 2016" ref="">Children in early adolescence tend to exaggerate or romanticize sexual experiences and that adolescents with disorganized families, such as the complainant, are even more prone to such behavior.</quote> | |
<quote id="1" author="Hillary Clinton" cats="Democratic Party (United States) politicians|Living people|Members of the United States Senate|People from Arkansas|People from Illinois|United States First ladies|United States Secretaries of State|United States presidential candidates, 2008|United States presidential candidates, 2016" ref= |
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
<?php | |
namespace ka\core; | |
use \ka\config as cfg; | |
/** | |
* Templating class | |
* | |
*/ |
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
class MainActivity extends BaseActivity { | |
private lazy val signalStr : PhoneStateListener = onSignalChanged((signalStrength) ⇒ { | |
if (signalStrength != null) { | |
lazy val signalWrapper = new SignalArrayWrapper(signalStrength.toString) | |
filteredSignals = signalWrapper.filterSignals(signalStrength.toString) | |
displayDebugInfo(signalWrapper) | |
displaySignalInfo(filteredSignals) | |
} | |
}) |
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/local/bin/perl -w | |
use strict; | |
use IO::Socket::INET; | |
use Sys::Hostname; | |
use Data::Dumper; | |
my ($remote_host, $remote_port); | |
$remote_port = $ARGV[0]; | |
my $hostname = `hostname`; |
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
var haystack = "AABBCC"; | |
var matches = rules.Where(kv => haystack.Contains(kv.Key)).ToDictionary(kv => kv.Key, kv => kv.Value); | |
var needle = matches.Any() ? matches.ElementAt(new Random().Next(matches.Count)).Key : ""; | |
haystack.Replace(needle, rules[needle]); |
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
using System; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using System.ServiceProcess; | |
using System.Linq; | |
using Microsoft.QualityTools.Testing.Fakes; | |
using Ploeh.AutoFixture; | |
using Ploeh.AutoFixture.AutoMoq; | |
using ServicesTool2.Models; | |
namespace ServicesToolTests { |
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
package Extensions | |
import dispatch._ | |
import slick.dbio.{NoStream, Effect} | |
import slick.jdbc.JdbcBackend | |
import slick.profile.{SqlAction, SqlStreamingAction} | |
import scala.concurrent.Await | |
import scala.concurrent.duration.Duration |
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 slick.backend.DatabaseConfig | |
import slick.dbio.{NoStream, Effect} | |
import slick.driver.JdbcProfile | |
import slick.jdbc.JdbcBackend | |
import slick.profile.{SqlStreamingAction, SqlAction} | |
import scala.concurrent.Await | |
import scala.concurrent.duration.Duration | |
import scala.io.Source |
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
case class City(id: Long, name: String) | |
case class State(id: Long, abbr: String, name: String) | |
def citiesInPostal(postal: Long): DBIO[Seq[(City, State, Long)]] = { | |
sql"""SELECT c.id, c.name, s.id, s.abbr, s.name, csp.id | |
FROM location_identifier AS li, | |
cities AS c, | |
states AS s, | |
city_state_postal AS csp | |
WHERE csp.postal_code = ${postal} |
NewerOlder