Skip to content

Instantly share code, notes, and snippets.

View jerone's full-sized avatar

Jeroen van Warmerdam jerone

View GitHub Profile
@jerone
jerone / adb-to-ConEmu.md
Last active August 22, 2016 09:35
Add adb to ConEmu

cmd.exe /k Title adb & adb version -new_console:d:C:\Users\XXX\AppData\Local\Android\android-sdk\platform-tools

gource --seconds-per-day 0.5 --auto-skip-seconds 1 --key --highlight-user "Jeroen van Warmerdam" --follow-user "Jeroen van Warmerdam"
@jerone
jerone / README.md
Last active January 17, 2016 22:34
CSS Priority

CSS declarations (ways to define CSS)

  • External styles in the DOM (<link rel="stylesheet" href="style.css">).
  • Internal styles in the DOM (<style>).
  • Inline styles in HTML elements (<div style="color: red;">).
  • External styles in CSS area (@import).

CSS hierarchy (first is highest priority)

  1. User styles with !important.
content/addons4-overlay.xul | 30 ++++++++++++++++++------------
1 file changed, 18 insertions(+), 12 deletions(-)
diff --git a/content/addons4-overlay.xul b/content/addons4-overlay.xul
index 8016358..fc55b16 100644
--- a/content/addons4-overlay.xul
+++ b/content/addons4-overlay.xul
@@ -45,18 +45,24 @@
label="&Show;" accesskey="&Show.accesskey;" class="greasemonkey greasemonkeyNoHide"
/>
@jerone
jerone / BrokerController.cs
Created March 28, 2013 08:16
CheckBox List in MVC C# ASP.NET
// GET: /Brokers/Edit/5
public ActionResult Edit(Guid id)
{
Broker broker = db.Brokers.Find(id);
if (broker == null)
{
return HttpNotFound();
}
ViewBag.BrokerValues = GetBrokerValues(broker);
@jerone
jerone / gist:4612335
Last active December 11, 2015 14:09
C# float differences
/// C# float differences:
-3.40282347E+38 // float.MinValue
-3.402823E+38 // database
float.MinValue == float.Parse(float.MinValue.ToString()) // false
float.MinValue == Convert.ToSingle(float.MinValue) // true
@jerone
jerone / aero.cmd
Created January 23, 2013 19:56
Restart Windows Aero
net stop uxsms
net start uxsms
@jerone
jerone / gist:4595989
Created January 22, 2013 16:22
Insert char at index in char array (in this case a number)
using System;
using System.Windows.Forms;
namespace Script
{
public class Script
{
public void Main()
{
int no = 52123456;
@jerone
jerone / README.md
Last active December 11, 2015 08:20
Dood in de woestijn (spel antwoorden)

Dood in de woestijn (spel)

  1. 1 andspiegel
  2. 1 overjas per persoon
  3. 1 lt. water per persoon
  4. zaklantaarn
  5. felgekleurde parachute
  6. zakmes
  7. 1 plastic regenjas
  8. geladen persoon
@jerone
jerone / menu.js
Created November 30, 2012 14:20 — forked from macdonst/menu.js
Cordova OptionsMenu example
var optionsmenu = new OptionsMenu({
id: "optionsmenu",
items: [
{
label: "Settings",
image: "menu/settings.png",
action: onSettings
},
{
label: "Help",