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
""" | |
https://youtrack.jetbrains.com/issue/IDEA-208989 | |
Mini hack script to ensure UPDATE_BRANCHES_INFO is set to false in IDEA workspace.xml files | |
Typical file structure: | |
<project> | |
... | |
<component name="Git.Settings"> | |
... | |
<option name="UPDATE_BRANCHES_INFO" value="false" /> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Locus Maps providers.xml for Hitta.se. | |
Place in /<SDCARD>/Locus/mapsOnline/custom/hitta-se.xml | |
--> | |
<providers> | |
<provider id="15000" type="1" visible="true" required="true" background="0"> | |
<name>Hitta.se</name> | |
<mode>Karta</mode> | |
<url><![CDATA[http://static.hitta.se/tile/v3/0/{z}/{x}/{y}]]></url> |
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
import sys | |
from xml.sax.saxutils import escape | |
# python-based 1Password export DB -> KeePassX import XML file | |
# Similar to https://github.com/adamaltman/1Password-to-Keepassx/blob/master/convert.php | |
# but written in Python (which exists on MacOSX by default) | |
# | |
# EXPORT (in 3.8, may differe in newer versions): | |
# 1. Open 1Password, unlock keychain. | |
# 2. Select File -> Export All -> Text File... |
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 a/moat.c b/moat.c | |
index 7cd9951..3b4992a 100644 | |
--- a/moat.c | |
+++ b/moat.c | |
@@ -189,16 +189,19 @@ static void moat_write(void) | |
void moat_poll(void) | |
{ | |
static uint8_t i = 0; | |
+ DDRD|=(1<<7); | |
+ PORTD|=(1<<7); |
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
.text:1000E100 password_mangler proc near ; CODE XREF: sub_10002000+341p | |
.text:1000E100 ; sub_10002930+4E6p ... | |
.text:1000E100 | |
.text:1000E100 var_18 = byte ptr -18h | |
.text:1000E100 var_8 = dword ptr -8 | |
.text:1000E100 | |
.text:1000E100 sub esp, 18h | |
.text:1000E103 mov eax, dword_100C74E0 | |
.text:1000E108 xor eax, esp | |
.text:1000E10A mov [esp+18h+var_8], eax |
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
@Test | |
public void testPojo() throws IOException{ | |
ObjectMapper objectMapper = new ObjectMapper(); | |
// private_id, protected_id are not settable | |
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); | |
Pojo p = objectMapper.readValue("{\"private_id\":1,\"protected_id\":2,\"public_id\":3,\"protectedWithGetter\":4}", Pojo.class); | |
assertEquals(0, p.private_id); // private is not writable | |
assertEquals(0, p.protected_id); // protected is not writable |
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
openssh: | |
pkg.installed: | |
- name: openssh-portable | |
service: | |
- running | |
- enable: True | |
- require: | |
- pkg: openssh-portable | |
- service: base-sshd-removed |
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(['angularAMD', 'angular-route'], function (angularAMD) { | |
var app = angular.module("webapp", ['ngRoute']); | |
app.config(function ($routeProvider) { | |
$routeProvider | |
.when("/home", angularAMD.route({ | |
templateUrl: 'view_home.html', controller: 'HomeCtrl', controllerUrl: 'controller_home' | |
})) | |
.when("/view1", angularAMD.route({ | |
templateUrl: 'view_view1.html', controller: 'View1Ctrl', controllerUrl: 'controller_view1' |
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
// Ugly hax which have not been tested.. :) | |
char dummyOutput[] = "artist: internets\ntitle: elektronikvisan\n"; | |
char * findTitle() { | |
char lookFor[] = "title: "; | |
char *titleStart, *titleEnd; | |
titleStart = strstr(dummyOutput, lookFor); | |
if(!titleStart) |
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
import java.util.concurrent.*; | |
public class test{ | |
public static void main(String[]args){ | |
System.out.println("testFutureTask"); | |
Runnable r = new Runnable(){ | |
public void run(){} | |
}; |
NewerOlder