- 电源 14
- 学习 N/A
- 音量+ 8D724FB0
- 音量- 8D72CF30
- TV/IPTV 8D722FD0
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
var jiaker = window.jiaker || {}; | |
jiaker.services = angular.module('services', ['ngResource', 'ngCordova']); | |
// ------------------------------------ | |
// CityService | |
// ------------------------------------ | |
// GET /city | |
// GET /city/location/{latitude}/{longitude} | |
jiaker.services.factory('CityService', function ($resource) { | |
var city = $resource(jiaker.settings.service + '/city'); |
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
$user = "username" | |
$password = "password" | |
$teamCityHost = "http://teamcity:8082/" | |
$pair = "$($user):$($password)" | |
$encodedCreds = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes($pair)) | |
$basicAuthValue = "Basic $encodedCreds" | |
$headers = @{ | |
"Authorization" = $basicAuthValue; | |
"Accept" = "application/xml"; |
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
function LazyMan(name) { | |
return new _LazyMan(name); | |
} | |
function _LazyMan(name) { | |
var self = this; | |
self.name = name; | |
self.tasks = []; | |
var greeting = function() { |
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
// ==UserScript== | |
// @name ad blocker for fm.douban.com | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @author Wayne | |
// @match https://fm.douban.com/* | |
// @match https://douban.fm/* | |
// @grant none | |
// ==/UserScript== |
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
<div id="mocha"></div> | |
<hr /> | |
<div id="counterTest"></div> |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
// check sideToCheck | |
int checkSide(int firstSide, int secondSide, int sideToCheck) | |
{ | |
if (sideToCheck > firstSide + secondSide) | |
{ | |
return 0; |
I'm drunk and I'll probably regret this, but here's a drunken rank of things I've learned as an engineer for the past 10 years.
- The best way I've advanced my career is by changing companies.
- Technology stacks don't really matter because there are like 15 basic patterns of software engineering in my field that apply. I work in data so it's not going to be the same as webdev or embedded. But all fields have about 10-20 core principles and the tech stack is just trying to make those things easier, so don't fret overit.
- There's a reason why people recommend job hunting. If I'm unsatisfied at a job, it's probably time to move on.
- I've made some good, lifelong friends at companies I've worked with. I don't need to make that a requirement of every place I work. I've been perfectly happy working at places where I didn't form friendships with my coworkers and I've been unhappy at places where I made some great friends.
- I've learned to be honest with my manager. Not too honest, but honest enough where I can
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
# Install with | |
# New-Item -Path $profile -ItemType File -Force | |
# Remove alias where -> Where-Object | |
Remove-Item alias:\where -Force | |
function prompt { | |
$dir = $ExecutionContext.SessionState.Path.CurrentLocation.Path | |
Write-Host ("["+$dir+"]$") -ForegroundColor Magenta -NoNewline | |
return " " |
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 System; | |
using System.IO; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Text.RegularExpressions; | |
using System.Threading.Tasks; | |
namespace TetraPak.PIExecution.Subscriber.Clients.Tests | |
{ | |
public static class EmbeddedHttpServer |
OlderNewer